Patch 8.2.3392
Problem:    augroup completion escapes regexp pattern characters.
Solution:   Do not escape the augroup name. (closes #8826)
Files:      src/cmdexpand.c, src/testdir/test_cmdline.vim


*** ../vim-8.2.3391/src/cmdexpand.c     2021-08-27 20:59:31.541835086 +0200
--- src/cmdexpand.c     2021-09-01 13:02:00.103062148 +0200
***************
*** 2134,2141 ****
            {EXPAND_SYNTIME, get_syntime_arg, TRUE, TRUE},
  # endif
            {EXPAND_HIGHLIGHT, get_highlight_name, TRUE, TRUE},
!           {EXPAND_EVENTS, get_event_name, TRUE, TRUE},
!           {EXPAND_AUGROUP, get_augroup_name, TRUE, TRUE},
  # ifdef FEAT_CSCOPE
            {EXPAND_CSCOPE, get_cscope_name, TRUE, TRUE},
  # endif
--- 2134,2141 ----
            {EXPAND_SYNTIME, get_syntime_arg, TRUE, TRUE},
  # endif
            {EXPAND_HIGHLIGHT, get_highlight_name, TRUE, TRUE},
!           {EXPAND_EVENTS, get_event_name, TRUE, FALSE},
!           {EXPAND_AUGROUP, get_augroup_name, TRUE, FALSE},
  # ifdef FEAT_CSCOPE
            {EXPAND_CSCOPE, get_cscope_name, TRUE, TRUE},
  # endif
*** ../vim-8.2.3391/src/testdir/test_cmdline.vim        2021-08-28 
15:56:03.461179888 +0200
--- src/testdir/test_cmdline.vim        2021-09-01 13:01:37.823135191 +0200
***************
*** 876,886 ****
    call delete('Xfile2')
  
    " completion for the :augroup command
!   augroup XTest
    augroup END
    call feedkeys(":augroup X\<C-A>\<C-B>\"\<CR>", 'xt')
!   call assert_equal("\"augroup XTest", @:)
!   augroup! XTest
  
    " completion for the :unlet command
    call feedkeys(":unlet one two\<C-A>\<C-B>\"\<CR>", 'xt')
--- 876,888 ----
    call delete('Xfile2')
  
    " completion for the :augroup command
!   augroup XTest.test
    augroup END
    call feedkeys(":augroup X\<C-A>\<C-B>\"\<CR>", 'xt')
!   call assert_equal("\"augroup XTest.test", @:)
!   call feedkeys(":au X\<C-A>\<C-B>\"\<CR>", 'xt')
!   call assert_equal("\"au XTest.test", @:)
!   augroup! XTest.test
  
    " completion for the :unlet command
    call feedkeys(":unlet one two\<C-A>\<C-B>\"\<CR>", 'xt')
*** ../vim-8.2.3391/src/version.c       2021-08-31 20:57:51.197860833 +0200
--- src/version.c       2021-09-01 13:02:26.914975059 +0200
***************
*** 757,758 ****
--- 757,760 ----
  {   /* Add new patch number below this line */
+ /**/
+     3392,
  /**/

-- 
The word "leader" is derived from the word "lead", as in the material that
bullets are made out of.  The term "leader" was popularized at about the same
time as the invention of firearms.  It grew out of the observation that the
person in charge of every organization was the person whom everyone wanted to
fill with hot lead.
   I don't recomment this; it's just a point of historical interest.
                                (Scott Adams - The Dilbert principle)

 /// 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/202109011104.181B4fZt4131591%40masaka.moolenaar.net.

Raspunde prin e-mail lui