Skip to content

Commit

Permalink
Fixed a bug with last command repeating in debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
rlidwka authored and indutny committed Sep 28, 2012
1 parent b38277b commit 8ac1a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)';
}
}
Expand Down

0 comments on commit 8ac1a73

Please sign in to comment.