From a608f65b2454a83f08a60ba24088a672097540f5 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Mon, 21 May 2012 19:46:57 -0300 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();