mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
fileio: Replace some event checking functions with one has_event
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user