aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-01-12 09:45:09 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-01-12 09:45:09 -0500
commit970b5f2752feb3ba5c906c5019f5ea778ead5a90 (patch)
tree8cdcd8f7d2a04e2b30773018a7b51d14ee18b998 /src/nvim/ex_docmd.c
parent7497dbee16fa8a452d12a9134e58526c255813bc (diff)
parent879c668d14095b5eaa5204c89034e369a8f0240d (diff)
downloadrneovim-970b5f2752feb3ba5c906c5019f5ea778ead5a90.tar.gz
rneovim-970b5f2752feb3ba5c906c5019f5ea778ead5a90.tar.bz2
rneovim-970b5f2752feb3ba5c906c5019f5ea778ead5a90.zip
Merge pull request #3984 from cacplate/has_event
Remove redundant functions to replace for the general has_event function
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 fad497928c..84bd31d9ad 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -1694,7 +1694,7 @@ static char_u * do_one_cmd(char_u **cmdlinep,
// autocommands defined, trigger the matching autocommands.
if (p != NULL && ea.cmdidx == CMD_SIZE && !ea.skip
&& ASCII_ISUPPER(*ea.cmd)
- && has_cmdundefined()) {
+ && has_event(EVENT_CMDUNDEFINED)) {
p = ea.cmd;
while (ASCII_ISALNUM(*p)) {
++p;