repl: preserve the cursor when redisplaying the prompt on SIGCONT
authorNathan Rajlich <nathan@tootallnate.net>
Mon, 21 May 2012 22:46:57 +0000 (19:46 -0300)
committerNathan Rajlich <nathan@tootallnate.net>
Tue, 22 May 2012 00:09:46 +0000 (21:09 -0300)
commita608f65b2454a83f08a60ba24088a672097540f5
tree263644010f9c32297991b0be1bc2c8b647b80a41
parent3f69c711579dbc513915efd558da05170243fcf5
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.
lib/repl.js