0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.2110

Problem:    When there is an CmdUndefined autocmd then the error for a missing
            command is E464 instead of E492. (Manuel Ortega)
Solution:   Don't let the pointer be NULL.
This commit is contained in:
Bram Moolenaar
2016-07-28 22:08:24 +02:00
parent ad9c2a08f0
commit eac784eced
3 changed files with 33 additions and 1 deletions

View File

@@ -2343,7 +2343,7 @@ do_one_cmd(
vim_free(p);
/* If the autocommands did something and didn't cause an error, try
* finding the command again. */
p = (ret && !aborting()) ? find_command(&ea, NULL) : NULL;
p = (ret && !aborting()) ? find_command(&ea, NULL) : ea.cmd;
}
#endif