Mercurial > vim
comparison src/testdir/test_cmdline.vim @ 25713:2eddbc3d83b9 v8.2.3392
patch 8.2.3392: augroup completion escapes regexp pattern characters
Commit: https://github.com/vim/vim/commit/b4d82e2a8d610c00139a74970df772eece2daf1c
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 01 Sep 2021 13:15:06 +0200 |
parents | ce91372ca07b |
children | 589226a5f317 |
comparison
equal
deleted
inserted
replaced
25712:e2b38073ff8f | 25713:2eddbc3d83b9 |
---|---|
874 call assert_equal("\"doautocmd BufEnter Xfile1 Xfile2", @:) | 874 call assert_equal("\"doautocmd BufEnter Xfile1 Xfile2", @:) |
875 call delete('Xfile1') | 875 call delete('Xfile1') |
876 call delete('Xfile2') | 876 call delete('Xfile2') |
877 | 877 |
878 " completion for the :augroup command | 878 " completion for the :augroup command |
879 augroup XTest | 879 augroup XTest.test |
880 augroup END | 880 augroup END |
881 call feedkeys(":augroup X\<C-A>\<C-B>\"\<CR>", 'xt') | 881 call feedkeys(":augroup X\<C-A>\<C-B>\"\<CR>", 'xt') |
882 call assert_equal("\"augroup XTest", @:) | 882 call assert_equal("\"augroup XTest.test", @:) |
883 augroup! XTest | 883 call feedkeys(":au X\<C-A>\<C-B>\"\<CR>", 'xt') |
884 call assert_equal("\"au XTest.test", @:) | |
885 augroup! XTest.test | |
884 | 886 |
885 " completion for the :unlet command | 887 " completion for the :unlet command |
886 call feedkeys(":unlet one two\<C-A>\<C-B>\"\<CR>", 'xt') | 888 call feedkeys(":unlet one two\<C-A>\<C-B>\"\<CR>", 'xt') |
887 call assert_equal("\"unlet one two", @:) | 889 call assert_equal("\"unlet one two", @:) |
888 | 890 |