Skip to content

Commit 73ab8dc

Browse files
committed
Use comint-send-string
This one is solving the weird duplicating prompt issue. After the sanitation patch we were sending newline twice. Using comint-send-string because it is more low-level and does not modify the input string, which we are building correctly already (hopefully).
1 parent f420c8a commit 73ab8dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

inf-clojure.el

+2-3
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,8 @@ the string for evaluation. Refer to `comint-simple-send` for
339339
customizations."
340340
(inf-clojure--set-repl-type proc)
341341
(let ((sanitized (inf-clojure--sanitize-command string)))
342-
(when (not (string-empty-p sanitized))
343-
(inf-clojure--log-string sanitized "----CMD->")
344-
(comint-simple-send proc sanitized))))
342+
(inf-clojure--log-string sanitized "----CMD->")
343+
(comint-send-string proc sanitized)))
345344

346345
(defcustom inf-clojure-load-form "(clojure.core/load-file \"%s\")"
347346
"Format-string for building a Clojure expression to load a file.

0 commit comments

Comments
 (0)