: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:
Justin M. Keyes
2019-08-05 03:33:45 +02:00
committed by GitHub
parent 01ddb39699
commit 45c34bd84a
4 changed files with 40 additions and 18 deletions

View File

@@ -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);