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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202108071200.177C0Alc1822326%40masaka.moolenaar.net.

Raspunde prin e-mail lui