1
0
forked from aniani/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 #4721)
This commit is contained in:
Bram Moolenaar
2019-07-24 22:30:27 +02:00
parent 1f164b1968
commit 94f82cbacf
4 changed files with 15 additions and 1 deletions

View File

@@ -3191,7 +3191,7 @@ find_command(exarg_T *eap, int *full UNUSED)
if (ASCII_ISLOWER(eap->cmd[0]))
{
int c1 = eap->cmd[0];
int c2 = eap->cmd[1];
int c2 = len == 1 ? NUL : eap->cmd[1];
if (command_count != (int)CMD_SIZE)
{