Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
repl: preserve the cursor when redisplaying the prompt on SIGCONT
Browse files Browse the repository at this point in the history
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
TooTallNate committed May 22, 2012
1 parent 3f69c71 commit a608f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/repl.js
Expand Up @@ -306,7 +306,7 @@ function REPLServer(prompt, stream, eval, useGlobal, ignoreUndefined) {
});

rli.on('SIGCONT', function() {
self.displayPrompt();
self.displayPrompt(true);
});

self.displayPrompt();
Expand Down

0 comments on commit a608f65

Please sign in to comment.