mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
vim-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 vim/vim#8826)
b4d82e2a8d
This commit is contained in:
@@ -5285,8 +5285,8 @@ static int ExpandFromContext(expand_T *xp, char_u *pat, int *num_file, char ***f
|
|||||||
{ EXPAND_SYNTAX, get_syntax_name, true, true },
|
{ EXPAND_SYNTAX, get_syntax_name, true, true },
|
||||||
{ EXPAND_SYNTIME, get_syntime_arg, true, true },
|
{ EXPAND_SYNTIME, get_syntime_arg, true, true },
|
||||||
{ EXPAND_HIGHLIGHT, (ExpandFunc)get_highlight_name, true, true },
|
{ EXPAND_HIGHLIGHT, (ExpandFunc)get_highlight_name, true, true },
|
||||||
{ EXPAND_EVENTS, expand_get_event_name, true, true },
|
{ EXPAND_EVENTS, expand_get_event_name, true, false },
|
||||||
{ EXPAND_AUGROUP, expand_get_augroup_name, true, true },
|
{ EXPAND_AUGROUP, expand_get_augroup_name, true, false },
|
||||||
{ EXPAND_CSCOPE, get_cscope_name, true, true },
|
{ EXPAND_CSCOPE, get_cscope_name, true, true },
|
||||||
{ EXPAND_SIGN, get_sign_name, true, true },
|
{ EXPAND_SIGN, get_sign_name, true, true },
|
||||||
{ EXPAND_PROFILE, get_profile_name, true, true },
|
{ EXPAND_PROFILE, get_profile_name, true, true },
|
||||||
|
@@ -925,11 +925,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')
|
||||||
|
Reference in New Issue
Block a user