Skip to content

Commit

Permalink
Merge branch 'release/0.1.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
abicky committed Sep 15, 2018
2 parents 1677065 + 4b0f855 commit d0b4e56
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions nodejs-repl.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
;; Copyright (C) 2012-2017 Takeshi Arabiki

;; Author: Takeshi Arabiki
;; Version: 0.1.6
;; Version: 0.1.7

;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -53,7 +53,7 @@
"Run Node.js REPL and communicate the process."
:group 'processes)

(defconst nodejs-repl-version "0.1.6"
(defconst nodejs-repl-version "0.1.7"
"Node.js mode Version.")

(defcustom nodejs-repl-command "node"
Expand Down Expand Up @@ -374,8 +374,13 @@ when receive the output string"
"Send the current region to the `nodejs-repl-process'"
(interactive "r")
(let ((proc (nodejs-repl--get-or-create-process)))
;; Enclose the region in .editor ... EOF as this is more robust.
;; See: https://github.com/abicky/nodejs-repl.el/issues/17
(comint-send-string proc ".editor\n")
(comint-send-region proc start end)
(comint-send-string proc "\n")))
(comint-send-string proc "\n")
(with-current-buffer (process-buffer proc)
(comint-send-eof))))

;;;###autoload
(defun nodejs-repl-send-buffer ()
Expand Down

0 comments on commit d0b4e56

Please sign in to comment.