Skip to content

Commit 74592d5

Browse files
committed
Don't use comint-send-string for invisible input
1 parent 4816ab3 commit 74592d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

js-comint.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ This is used to mark the end of completion output.")
271271
This is used specifically to remove input used to trigger completion.
272272
CALLBACK allows chaining an action after clearing."
273273
(setq js-comint--discard-output (or callback 't))
274-
(comint-send-string
274+
(process-send-string
275275
(js-comint-get-process)
276276
""))
277277

@@ -284,11 +284,11 @@ CALLBACK allows chaining an action after clearing."
284284
;; Need to send 2x tabs to trigger completion when there is no input
285285
;; 1st tab usually does common prefix
286286
(when (string-empty-p input-string)
287-
(comint-send-string
287+
(process-send-string
288288
(js-comint-get-process)
289289
"\t"))
290290

291-
(comint-send-string
291+
(process-send-string
292292
(js-comint-get-process)
293293
(format "%s\t" input-string)))
294294

@@ -338,7 +338,7 @@ PREFIX is the original completion prefix string."
338338
(message "exact match output")
339339
;; Completions like Array. seem to need a second tab after the response
340340
(if (string-suffix-p "." js-comint--completion-prefix)
341-
(comint-send-string
341+
(process-send-string
342342
(js-comint-get-process)
343343
"\t")
344344
;; Otherwise there was no match, so reset

0 commit comments

Comments
 (0)