# HG changeset patch # User Bram Moolenaar # Date 1630494906 -7200 # Node ID 2eddbc3d83b94413fe07082505b654149e6a605b # Parent e2b38073ff8f3e67a5e76e3ed769517fbbcacd61 patch 8.2.3392: augroup completion escapes regexp pattern characters Commit: https://github.com/vim/vim/commit/b4d82e2a8d610c00139a74970df772eece2daf1c Author: Bram Moolenaar Date: Wed Sep 1 13:03:39 2021 +0200 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 https://github.com/vim/vim/issues/8826) diff --git a/src/cmdexpand.c b/src/cmdexpand.c --- a/src/cmdexpand.c +++ b/src/cmdexpand.c @@ -2134,8 +2134,8 @@ ExpandFromContext( {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}, + {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 diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -876,11 +876,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\\\"\", 'xt') - call assert_equal("\"augroup XTest", @:) - augroup! XTest + call assert_equal("\"augroup XTest.test", @:) + call feedkeys(":au X\\\"\", 'xt') + call assert_equal("\"au XTest.test", @:) + augroup! XTest.test " completion for the :unlet command call feedkeys(":unlet one two\\\"\", 'xt') diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -756,6 +756,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3392, +/**/ 3391, /**/ 3390,