commit | a608f65b2454a83f08a60ba24088a672097540f5 | [log] [tgz] |
---|---|---|
author | Nathan Rajlich <[email protected]> | Mon May 21 22:46:57 2012 |
committer | Nathan Rajlich <[email protected]> | Tue May 22 00:09:46 2012 |
tree | 263644010f9c32297991b0be1bc2c8b647b80a41 | |
parent | 3f69c711579dbc513915efd558da05170243fcf5 [diff] |
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.
diff --git a/lib/repl.js b/lib/repl.js index 889a9f0..26f081c 100644 --- a/lib/repl.js +++ b/lib/repl.js
@@ -306,7 +306,7 @@ }); rli.on('SIGCONT', function() { - self.displayPrompt(); + self.displayPrompt(true); }); self.displayPrompt();