diff options
author | 2014-02-12 12:49:32 -0800 | |
---|---|---|
committer | 2014-02-12 12:52:31 -0800 | |
commit | 503bbd85b56f8c7cac4065fa0cd7e7738d9d87a8 (patch) | |
tree | b4ae1bf98140314596798c32ba7c506829d9cae1 /builtin.cpp | |
parent | 29ddb68da428804148a0c6f44229cf1848bebf8c (diff) |
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.
Diffstat (limited to 'builtin.cpp')
-rw-r--r-- | builtin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin.cpp b/builtin.cpp index fb5fbeb4..8b8b8d5c 100644 --- a/builtin.cpp +++ b/builtin.cpp @@ -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; |