branch: elpa/cider
commit 4a35e243c2e6830af23d05dcb648c71816e3da97
Author: vemv <v...@users.noreply.github.com>
Commit: vemv <v...@users.noreply.github.com>

    `nrepl--port-from-file`: remove any trailing newline
    
    Merely a presentational improvement.
---
 nrepl-client.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/nrepl-client.el b/nrepl-client.el
index f6e2876d99..97be8e0f8f 100644
--- a/nrepl-client.el
+++ b/nrepl-client.el
@@ -258,7 +258,8 @@ PARAMS is as in `nrepl-make-buffer-name'."
   (when (file-exists-p file)
     (with-temp-buffer
       (insert-file-contents file)
-      (buffer-string))))
+      (replace-regexp-in-string "\n\\'" "" ;; remove any trailing newline, so 
that our UIs look better.
+                                (buffer-string)))))
 
 
 ;;; Bencode

Reply via email to