diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-07-24 20:38:36 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-07-24 21:43:04 -0400 |
commit | 9ea449085da08eaa5ccb826dd5e37f480c871e79 (patch) | |
tree | 2ef09735cbe22b6db13bed220fecc6e6b7ab3124 /src/nvim/ex_docmd.c | |
parent | 80487b59c92361f445396fa2faaf2f7f14ee4666 (diff) | |
download | rneovim-9ea449085da08eaa5ccb826dd5e37f480c871e79.tar.gz rneovim-9ea449085da08eaa5ccb826dd5e37f480c871e79.tar.bz2 rneovim-9ea449085da08eaa5ccb826dd5e37f480c871e79.zip |
vim-patch:8.1.1746: ":dl" is seen as ":dlist" instead of ":delete"
Problem: ":dl" is seen as ":dlist" instead of ":delete".
Solution: Do not use cmdidxs2[] if the length is 1. (closes vim/vim#4721)
https://github.com/vim/vim/commit/94f82cbacf76767b5ac32f813e1d670501dbd0e6
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index af5635ddba..28c7bc300f 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -2451,7 +2451,7 @@ static char_u *find_command(exarg_T *eap, int *full) if (ASCII_ISLOWER(eap->cmd[0])) { const int c1 = eap->cmd[0]; - const int c2 = eap->cmd[1]; + const int c2 = len == 1 ? NUL : eap->cmd[1]; if (command_count != (int)CMD_SIZE) { iemsg((char *)_("E943: Command table needs to be updated, run 'make'")); |