summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Rajlich <nathan@tootallnate.net>2012-05-21 19:46:57 -0300
committerNathan Rajlich <nathan@tootallnate.net>2012-05-21 21:09:46 -0300
commita608f65b2454a83f08a60ba24088a672097540f5 (patch)
tree263644010f9c32297991b0be1bc2c8b647b80a41
parent3f69c711579dbc513915efd558da05170243fcf5 (diff)
downloadandroid-node-v8-a608f65b2454a83f08a60ba24088a672097540f5.tar.gz
android-node-v8-a608f65b2454a83f08a60ba24088a672097540f5.tar.bz2
android-node-v8-a608f65b2454a83f08a60ba24088a672097540f5.zip
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.
-rw-r--r--lib/repl.js2
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();