Auto completion of built-in debugger suggests prefix match rather than partial match.
This commit is contained in:
parent
ca028f4b37
commit
682b66c0c1
@ -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]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user