mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
:doautocmd : Never show "No matching autocommands" #10689
The message is useless, it doesn't even mention the event name. vim_dev discussion: https://groups.google.com/forum/#!msg/vim_dev/RTbq58TMq9w/Xr4rSoUTCgAJ ref: https://github.com/vim/vim/issues/4300
This commit is contained in:
@@ -4614,7 +4614,7 @@ static void ex_doautocmd(exarg_T *eap)
|
||||
int call_do_modelines = check_nomodeline(&arg);
|
||||
bool did_aucmd;
|
||||
|
||||
(void)do_doautocmd(arg, true, &did_aucmd);
|
||||
(void)do_doautocmd(arg, false, &did_aucmd);
|
||||
// Only when there is no <nomodeline>.
|
||||
if (call_do_modelines && did_aucmd) {
|
||||
do_modelines(0);
|
||||
|
Reference in New Issue
Block a user