To: vim_dev@googlegroups.com Subject: Patch 8.2.3306 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3306 Problem: Unexpected "No matching autocommands". Solution: Do not give the message when aborting. Mention the arguments in the message. (closes #8690) Files: src/autocmd.c, *** ../vim-8.2.3305/src/autocmd.c 2021-08-01 14:52:05.554645412 +0200 --- src/autocmd.c 2021-08-07 13:58:40.223052192 +0200 *************** *** 1287,1296 **** */ int do_doautocmd( ! char_u *arg, int do_msg, // give message for no matching autocmds? int *did_something) { char_u *fname; int nothing_done = TRUE; int group; --- 1287,1297 ---- */ int do_doautocmd( ! char_u *arg_start, int do_msg, // give message for no matching autocmds? int *did_something) { + char_u *arg = arg_start; char_u *fname; int nothing_done = TRUE; int group; *************** *** 1329,1336 **** fname, NULL, TRUE, group, curbuf, NULL)) nothing_done = FALSE; ! if (nothing_done && do_msg) ! msg(_("No matching autocommands")); if (did_something != NULL) *did_something = !nothing_done; --- 1330,1341 ---- fname, NULL, TRUE, group, curbuf, NULL)) nothing_done = FALSE; ! if (nothing_done && do_msg ! #ifdef FEAT_EVAL ! && !aborting() ! #endif ! ) ! smsg(_("No matching autocommands: %s"), arg_start); if (did_something != NULL) *did_something = !nothing_done; *** ../vim-8.2.3305/src/version.c 2021-08-07 13:26:47.851191736 +0200 --- src/version.c 2021-08-07 13:43:04.857078220 +0200 *************** *** 757,758 **** --- 757,760 ---- { /* Add new patch number below this line */ + /**/ + 3306, /**/ -- The question is: What do you do with your life? The wrong answer is: Become the richest guy in the graveyard. (billionaire and Oracle founder Larry Ellison) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///