Skip to content

Commit

Permalink
fix repl completion and navigation
Browse files Browse the repository at this point in the history
The readline interface of node has changed in [aad12d0][] and because of
that the autocompletion and key movement didn't work anymore. This
commit fixes this by checking whether stdin is in raw mode (i.e. invoked
as a script) or not (as a repl).

[aad12d0]: nodejs/node-v0.x-archive@aad12d0
  • Loading branch information
heyLu committed May 20, 2012
1 parent f938a21 commit 01d4e87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/coffee-script/repl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/repl.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ run = (buffer) ->
error err
repl.prompt()

if stdin.readable
if stdin.readable and stdin.isRaw
# handle piped input
pipedInput = ''
repl =
Expand Down

0 comments on commit 01d4e87

Please sign in to comment.