Skip to content

Commit 15963ca

Browse files
arichiardibbatsov
authored andcommitted
Trim the string before checking nil
1 parent 4a87862 commit 15963ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

inf-clojure.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ in case this is not nil." )
961961

962962
(defun inf-clojure--log-string (string &optional tag)
963963
"Log STRING to file, according to `inf-clojure-log-response'.
964-
The optional TYPE will be converted to string and printed before
964+
The optional TAG will be converted to string and printed before
965965
STRING if present."
966966
(when inf-clojure-log-activity
967967
(write-region (concat "\n"
@@ -1062,9 +1062,9 @@ for evaluation, therefore FORM should not include it."
10621062
(defun inf-clojure--some-response-p (proc form)
10631063
"Return true iff PROC's response after evaluating FORM is not nil."
10641064
(inf-clojure--process-response-match-p
1065-
(lambda (string)
1066-
(not (inf-clojure--nil-string-match-p string)))
1067-
proc form))
1065+
(lambda (string)
1066+
(not (inf-clojure--nil-string-match-p (string-trim string))))
1067+
proc form))
10681068

10691069
;;;; Commands
10701070
;;;; ========

0 commit comments

Comments
 (0)