Skip to content

Commit

Permalink
Print a newline as soon as the command starts to execute.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmears authored and chrisdone committed Apr 5, 2014
1 parent a0a33d3 commit 3d1ff09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haskell-interactive-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ Key bindings:
(make-haskell-command
:state (list session process expr 0)
:go (lambda (state)
(insert "\n")
(haskell-process-send-string (cadr state)
(haskell-interactive-mode-multi-line (caddr state))))
:live (lambda (state buffer)
Expand All @@ -222,7 +223,6 @@ Key bindings:
haskell-process-prompt-regex
"\n"
(substring buffer cursor))))
(when (= 0 cursor) (insert "\n"))
(haskell-interactive-mode-eval-result (car state) next)

(setf (cdddr state) (list (length buffer)))
Expand Down

0 comments on commit 3d1ff09

Please sign in to comment.