Case insensitive tab completion

This commit is contained in:
Mattias Erming 2014-06-17 00:59:01 +02:00
parent 5bd148d7b5
commit 7e0672e035
1 changed files with 2 additions and 2 deletions

View File

@ -345,8 +345,8 @@ $(function() {
});
return $.grep(
words,
function(cmd) {
return !cmd.indexOf(word);
function(w) {
return !w.toLowerCase().indexOf(word.toLowerCase());
}
);
}