From 682b66c0c1d8e04f6d589845047aa0b50fc80129 Mon Sep 17 00:00:00 2001 From: koichik Date: Wed, 30 Mar 2011 22:17:00 +0900 Subject: [PATCH] Auto completion of built-in debugger suggests prefix match rather than partial match. --- lib/_debugger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } }