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.
pull/24503/head
Nathan Rajlich 2012-05-21 19:46:57 -03:00
parent 3f69c71157
commit a608f65b24
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ function REPLServer(prompt, stream, eval, useGlobal, ignoreUndefined) {
});
rli.on('SIGCONT', function() {
self.displayPrompt();
self.displayPrompt(true);
});
self.displayPrompt();