From 8ac1a73635316024f05375d021344ae2b45db831 Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Sat, 25 Aug 2012 23:25:32 +0400 Subject: [PATCH] Fixed a bug with last command repeating in debugger --- lib/_debugger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_debugger.js b/lib/_debugger.js index c39a0ba58ec..b221ce0bb99 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -952,7 +952,7 @@ Interface.prototype.controlEval = function(code, context, filename, callback) { try { // Repeat last command if empty line are going to be evaluated if (this.repl.rli.history && this.repl.rli.history.length > 0) { - if (code === '(undefined\n)') { + if (code === '(\n)') { code = '(' + this.repl.rli.history[0] + '\n)'; } }