branch: elpa/inf-clojure
commit 9deb1988832ec723fbd652a327325c4b9b285153
Author: Andrea Richiardi <a.richiardi.w...@gmail.com>
Commit: Bozhidar Batsov <bozhidar.bat...@gmail.com>

    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).
---
 inf-clojure.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inf-clojure.el b/inf-clojure.el
index 730cf86..fbad183 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -342,7 +342,7 @@ customizations."
   (inf-clojure--set-repl-type proc)
   (let ((sanitized (inf-clojure--sanitize-command string)))
     (inf-clojure--log-string sanitized "----CMD->")
-    (comint-simple-send proc sanitized)))
+    (comint-send-string proc sanitized)))
 
 (defcustom inf-clojure-load-form "(clojure.core/load-file \"%s\")"
   "Format-string for building a Clojure expression to load a file.

Reply via email to