mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
Test and fix issue where, if binding X is a prefix of binding Y, and X
is specified before Y, then Y will never be invoked because X will always get there first. Now instead we order bindings in descending order by length, so that we always test the binding before any others that prefixes it. Fixes #1283.
This commit is contained in:
@@ -556,8 +556,7 @@ static int builtin_bind(parser_t &parser, wchar_t **argv)
|
||||
BIND_ERASE,
|
||||
BIND_KEY_NAMES,
|
||||
BIND_FUNCTION_NAMES
|
||||
}
|
||||
;
|
||||
};
|
||||
|
||||
int argc=builtin_count_args(argv);
|
||||
int mode = BIND_INSERT;
|
||||
|
||||
Reference in New Issue
Block a user