commit | 1c0aa97827f30e3051ee50a0690555c2c23c0ceb | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Dec 16 21:43:54 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Dec 16 21:43:54 2020 +0100 |
tree | a45575382b93123ba3b613e07ffd4396565673d3 | |
parent | 530bed993e41bda6f717a8ddd0acb39464f95336 [diff] [blame] |
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)
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index b084822..152eda6 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c
@@ -3520,7 +3520,7 @@ ++p; p = find_ucmd(eap, p, full, NULL, NULL); } - if (p == eap->cmd) + if (p == NULL || p == eap->cmd) eap->cmdidx = CMD_SIZE; }