mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
e73517e34e
commit
747dec7925
@ -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_SYNTIME, get_syntime_arg, true, true },
|
||||
{ EXPAND_HIGHLIGHT, (ExpandFunc)get_highlight_name, true, true },
|
||||
{ EXPAND_EVENTS, expand_get_event_name, true, true },
|
||||
{ EXPAND_AUGROUP, expand_get_augroup_name, true, true },
|
||||
{ EXPAND_EVENTS, expand_get_event_name, true, false },
|
||||
{ EXPAND_AUGROUP, expand_get_augroup_name, true, false },
|
||||
{ EXPAND_CSCOPE, get_cscope_name, true, true },
|
||||
{ EXPAND_SIGN, get_sign_name, true, true },
|
||||
{ EXPAND_PROFILE, get_profile_name, true, true },
|
||||
|
@ -925,11 +925,13 @@ func Test_cmdline_complete_various()
|
||||
call delete('Xfile2')
|
||||
|
||||
" completion for the :augroup command
|
||||
augroup XTest
|
||||
augroup XTest.test
|
||||
augroup END
|
||||
call feedkeys(":augroup X\<C-A>\<C-B>\"\<CR>", 'xt')
|
||||
call assert_equal("\"augroup XTest", @:)
|
||||
augroup! XTest
|
||||
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')
|
||||
|
Loading…
Reference in New Issue
Block a user