Browse Source

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.
v0.9.1-release
Nathan Rajlich 13 years ago
parent
commit
a608f65b24
  1. 2
      lib/repl.js

2
lib/repl.js

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

Loading…
Cancel
Save