mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.3392: augroup completion escapes regexp pattern characters
Problem: augroup completion escapes regexp pattern characters. Solution: Do not escape the augroup name. (closes #8826)
This commit is contained in:
parent
20e0c3d27b
commit
b4d82e2a8d
@ -2134,8 +2134,8 @@ ExpandFromContext(
|
|||||||
{EXPAND_SYNTIME, get_syntime_arg, TRUE, TRUE},
|
{EXPAND_SYNTIME, get_syntime_arg, TRUE, TRUE},
|
||||||
# endif
|
# endif
|
||||||
{EXPAND_HIGHLIGHT, get_highlight_name, TRUE, TRUE},
|
{EXPAND_HIGHLIGHT, get_highlight_name, TRUE, TRUE},
|
||||||
{EXPAND_EVENTS, get_event_name, TRUE, TRUE},
|
{EXPAND_EVENTS, get_event_name, TRUE, FALSE},
|
||||||
{EXPAND_AUGROUP, get_augroup_name, TRUE, TRUE},
|
{EXPAND_AUGROUP, get_augroup_name, TRUE, FALSE},
|
||||||
# ifdef FEAT_CSCOPE
|
# ifdef FEAT_CSCOPE
|
||||||
{EXPAND_CSCOPE, get_cscope_name, TRUE, TRUE},
|
{EXPAND_CSCOPE, get_cscope_name, TRUE, TRUE},
|
||||||
# endif
|
# endif
|
||||||
|
@ -876,11 +876,13 @@ func Test_cmdline_complete_various()
|
|||||||
call delete('Xfile2')
|
call delete('Xfile2')
|
||||||
|
|
||||||
" completion for the :augroup command
|
" completion for the :augroup command
|
||||||
augroup XTest
|
augroup XTest.test
|
||||||
augroup END
|
augroup END
|
||||||
call feedkeys(":augroup X\<C-A>\<C-B>\"\<CR>", 'xt')
|
call feedkeys(":augroup X\<C-A>\<C-B>\"\<CR>", 'xt')
|
||||||
call assert_equal("\"augroup XTest", @:)
|
call assert_equal("\"augroup XTest.test", @:)
|
||||||
augroup! XTest
|
call feedkeys(":au X\<C-A>\<C-B>\"\<CR>", 'xt')
|
||||||
|
call assert_equal("\"au XTest.test", @:)
|
||||||
|
augroup! XTest.test
|
||||||
|
|
||||||
" completion for the :unlet command
|
" completion for the :unlet command
|
||||||
call feedkeys(":unlet one two\<C-A>\<C-B>\"\<CR>", 'xt')
|
call feedkeys(":unlet one two\<C-A>\<C-B>\"\<CR>", 'xt')
|
||||||
|
@ -755,6 +755,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3392,
|
||||||
/**/
|
/**/
|
||||||
3391,
|
3391,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user