mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
fish_config: fix binding filter regression (#3327)
This commit is contained in:
parent
a872d9c299
commit
476ffe12f6
1 changed files with 9 additions and 1 deletions
|
@ -25,8 +25,16 @@ filters.filter("filterBinding", function() {
|
|||
|
||||
for(i=0; i<bindings.length; ++i) {
|
||||
binding = bindings[i];
|
||||
if (binding.command.indexOf(query) != -1 || binding.readable_binding.toLowerCase().indexOf(query.toLowerCase()) != -1) {
|
||||
if (binding.command.indexOf(query) != -1) {
|
||||
result.push(binding);
|
||||
continue;
|
||||
}
|
||||
varieties = binding.bindings;
|
||||
for (j=0; j<varieties.length; ++j) {
|
||||
if (varieties[j].readable_binding.toLowerCase().indexOf(query.toLowerCase()) != -1) {
|
||||
result.push(binding);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue