Skip to content

Commit

Permalink
Send newline for ensuring compiling code
Browse files Browse the repository at this point in the history
Because coffee command does not generate JS code, if region does not end
with newline.
  • Loading branch information
syohex committed Mar 29, 2016
1 parent 8715d8c commit f077ed3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coffee-mode.el
Expand Up @@ -302,6 +302,7 @@ called `coffee-compiled-buffer-name'."
proc (coffee-compile-sentinel curbuf curfile line column))
(with-current-buffer curbuf
(process-send-region proc start end))
(process-send-string proc "\n")
(process-send-eof proc))))

(defun coffee-start-generate-sourcemap-process (start end)
Expand Down

0 comments on commit f077ed3

Please sign in to comment.