Case insensitive tab completion

This commit is contained in:
Mattias Erming 2014-06-17 00:59:01 +02:00
parent 5bd148d7b5
commit 7e0672e035

View File

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