aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorlonerover <pathfinder1644@yahoo.com>2017-01-05 20:55:32 +0800
committerJustin M. Keyes <justinkz@gmail.com>2017-01-05 13:55:32 +0100
commit12b50b116f305dcc454a594fa25a5e9934b48d01 (patch)
tree08b6e267d533668c27bf9cd71a70e51c2f6a7e9c /src/nvim/ex_docmd.c
parente21aef1e1002581dc653176eb3d7d4f2b06424f8 (diff)
downloadrneovim-12b50b116f305dcc454a594fa25a5e9934b48d01.tar.gz
rneovim-12b50b116f305dcc454a594fa25a5e9934b48d01.tar.bz2
rneovim-12b50b116f305dcc454a594fa25a5e9934b48d01.zip
vim-patch:7.4.2110 (#5880)
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. https://github.com/vim/vim/commit/eac784eced501c54d2c99e18a1af96cd996f3a6c
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 79a0b5849f..2c60cd0189 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -1711,7 +1711,7 @@ static char_u * do_one_cmd(char_u **cmdlinep,
xfree(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;
}
if (p == NULL) {