diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-16 13:49:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-16 13:49:48 +0800 |
commit | fa29bc94b5f9e3cfe5b8c9a104f301c975e711d4 (patch) | |
tree | 2ab154874119cff6488721434f4197846ccaeb47 /src/nvim/ex_docmd.c | |
parent | 591765c9151980ff4b5e700d384edf6fe0fdd5c5 (diff) | |
download | rneovim-fa29bc94b5f9e3cfe5b8c9a104f301c975e711d4.tar.gz rneovim-fa29bc94b5f9e3cfe5b8c9a104f301c975e711d4.tar.bz2 rneovim-fa29bc94b5f9e3cfe5b8c9a104f301c975e711d4.zip |
vim-patch:8.2.0593: finding a user command is not optimal (#19386)
Problem: Finding a user command is not optimal.
Solution: Start further down in the list of commands.
https://github.com/vim/vim/commit/a494f56f885876c98a276f7acfa386bfbb344680
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 4e6846bf21..f0ee849047 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -3028,6 +3028,8 @@ char *find_ex_command(exarg_T *eap, int *full) if (ASCII_ISLOWER(c2)) { eap->cmdidx += cmdidxs2[CHAR_ORD_LOW(c1)][CHAR_ORD_LOW(c2)]; } + } else if (ASCII_ISUPPER(eap->cmd[0])) { + eap->cmdidx = CMD_Next; } else { eap->cmdidx = CMD_bang; } |