Browse Source

Auto completion of built-in debugger suggests prefix match rather than partial match.

v0.7.4-release
koichik 14 years ago
committed by Ryan Dahl
parent
commit
682b66c0c1
  1. 2
      lib/_debugger.js

2
lib/_debugger.js

@ -652,7 +652,7 @@ Interface.prototype.complete = function(line) {
line = line.replace(/^\s*/, ''); line = line.replace(/^\s*/, '');
for (var i = 0; i < commands.length; i++) { for (var i = 0; i < commands.length; i++) {
if (commands[i].indexOf(line) >= 0) { if (commands[i].indexOf(line) === 0) {
matches.push(commands[i]); matches.push(commands[i]);
} }
} }

Loading…
Cancel
Save