forked from aniani/vim
patch 8.2.2148: Vim9: crash when user command doesn't match
Problem: Vim9: crash when user command doesn't match. Solution: Adjust command index. (closes #7479)
This commit is contained in:
@@ -3520,7 +3520,7 @@ find_ex_command(
|
||||
++p;
|
||||
p = find_ucmd(eap, p, full, NULL, NULL);
|
||||
}
|
||||
if (p == eap->cmd)
|
||||
if (p == NULL || p == eap->cmd)
|
||||
eap->cmdidx = CMD_SIZE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user