diff options
author | Alex Kocharin <alex@kocharin.ru> | 2012-08-25 23:25:32 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2012-09-28 10:21:37 +0400 |
commit | 8ac1a73635316024f05375d021344ae2b45db831 (patch) | |
tree | 3b635678c8b08b0853bfd92c817baead78ac3ff3 /lib/_debugger.js | |
parent | b38277be266cfd6b6c3cc9e00730898f62a11f6e (diff) | |
download | node-8ac1a73635316024f05375d021344ae2b45db831.tar.gz |
Fixed a bug with last command repeating in debugger
Diffstat (limited to 'lib/_debugger.js')
-rw-r--r-- | lib/_debugger.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_debugger.js b/lib/_debugger.js index c39a0ba58..b221ce0bb 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)'; } } |