We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4a4104d + 1eb95dc commit 3cdb983Copy full SHA for 3cdb983
1 file changed
nodejs-repl.el
@@ -374,8 +374,13 @@ when receive the output string"
374
"Send the current region to the `nodejs-repl-process'"
375
(interactive "r")
376
(let ((proc (nodejs-repl--get-or-create-process)))
377
+ ;; Enclose the region in .editor ... EOF as this is more robust.
378
+ ;; See: https://github.com/abicky/nodejs-repl.el/issues/17
379
+ (comint-send-string proc ".editor\n")
380
(comint-send-region proc start end)
- (comint-send-string proc "\n")))
381
+ (comint-send-string proc "\n")
382
+ (with-current-buffer (process-buffer proc)
383
+ (comint-send-eof))))
384
385
;;;###autoload
386
(defun nodejs-repl-send-buffer ()
0 commit comments