Permalink
Browse files

Fixed a bug with last command repeating in debugger

  • Loading branch information...
1 parent b38277b commit 8ac1a73635316024f05375d021344ae2b45db831 @rlidwka rlidwka committed with indutny Aug 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/_debugger.js
View
2 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)';
}
}

0 comments on commit 8ac1a73

Please sign in to comment.