diff options
author | Nathan Rajlich <nathan@tootallnate.net> | 2012-05-21 19:46:57 -0300 |
---|---|---|
committer | Nathan Rajlich <nathan@tootallnate.net> | 2012-05-21 21:09:46 -0300 |
commit | a608f65b2454a83f08a60ba24088a672097540f5 (patch) | |
tree | 263644010f9c32297991b0be1bc2c8b647b80a41 /lib/repl.js | |
parent | 3f69c711579dbc513915efd558da05170243fcf5 (diff) | |
download | node-new-a608f65b2454a83f08a60ba24088a672097540f5.tar.gz |
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.
Diffstat (limited to 'lib/repl.js')
-rw-r--r-- | lib/repl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/repl.js b/lib/repl.js index 889a9f0d26..26f081ce2f 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -306,7 +306,7 @@ function REPLServer(prompt, stream, eval, useGlobal, ignoreUndefined) { }); rli.on('SIGCONT', function() { - self.displayPrompt(); + self.displayPrompt(true); }); self.displayPrompt(); |