summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-09-01 13:03:39 +0200
committerBram Moolenaar <Bram@vim.org>2021-09-01 13:03:39 +0200
commitb4d82e2a8d610c00139a74970df772eece2daf1c (patch)
tree7a1b585c8dc1b243f5878d2f74036410c32f25e6
parent20e0c3d27bda770542c1c0e4c81fd6443c12f3a6 (diff)
downloadvim-git-b4d82e2a8d610c00139a74970df772eece2daf1c.tar.gz
patch 8.2.3392: augroup completion escapes regexp pattern charactersv8.2.3392
Problem: augroup completion escapes regexp pattern characters. Solution: Do not escape the augroup name. (closes #8826)
-rw-r--r--src/cmdexpand.c4
-rw-r--r--src/testdir/test_cmdline.vim8
-rw-r--r--src/version.c2
3 files changed, 9 insertions, 5 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index 58ba75967..6c9295769 100644
--- 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
index 341a0f113..7ed626dd4 100644
--- 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\<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')
diff --git a/src/version.c b/src/version.c
index b574d5d46..9f67d7964 100644
--- 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,