Fixed a bug with last command repeating in debugger
This commit is contained in:
parent
b38277be26
commit
8ac1a73635
@ -952,7 +952,7 @@ Interface.prototype.controlEval = function(code, context, filename, callback) {
|
|||||||
try {
|
try {
|
||||||
// Repeat last command if empty line are going to be evaluated
|
// Repeat last command if empty line are going to be evaluated
|
||||||
if (this.repl.rli.history && this.repl.rli.history.length > 0) {
|
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)';
|
code = '(' + this.repl.rli.history[0] + '\n)';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user