Permalink
Browse files

repl: preserve the cursor when redisplaying the prompt on SIGCONT

Otherwise the cursor position was being reset to 0, even when there was
already part of a line, which was strange.

Part of #3295.
  • Loading branch information...
1 parent ad73e12 commit e770f090f2b52eaa669c75af7987bae74a7dca6d @TooTallNate committed May 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/repl.js
View
@@ -306,7 +306,7 @@ function REPLServer(prompt, stream, eval, useGlobal, ignoreUndefined) {
});
rli.on('SIGCONT', function() {
- self.displayPrompt();
+ self.displayPrompt(true);
});
self.displayPrompt();

0 comments on commit e770f09

Please sign in to comment.