Fixed a bug with last command repeating in debugger

This commit is contained in:
Alex Kocharin 2012-08-25 23:25:32 +04:00 committed by Fedor Indutny
parent b38277be26
commit 8ac1a73635

View File

@ -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)';
}
}