diff --git a/lib/_debugger.js b/lib/_debugger.js index f155ca2e71c..859dc2c1af0 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -652,7 +652,7 @@ Interface.prototype.complete = function(line) { line = line.replace(/^\s*/, ''); for (var i = 0; i < commands.length; i++) { - if (commands[i].indexOf(line) >= 0) { + if (commands[i].indexOf(line) === 0) { matches.push(commands[i]); } }