diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-10 10:27:31 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-10 10:56:37 +0800 |
commit | 45d26442056feae1dcb6718d8925d97b6cf055e1 (patch) | |
tree | 4cfaefa98cf2340c0095310c49849377b848f9c3 /src/nvim/testdir | |
parent | d606c39a9cadcf2d627e93b1bdf18bea359d1c63 (diff) | |
download | rneovim-45d26442056feae1dcb6718d8925d97b6cf055e1.tar.gz rneovim-45d26442056feae1dcb6718d8925d97b6cf055e1.tar.bz2 rneovim-45d26442056feae1dcb6718d8925d97b6cf055e1.zip |
vim-patch:8.2.3530: ":buf \{a}" fails while ":edit \{a}" works
Problem: ":buf \{a}" fails while ":edit \{a}" works.
Solution: Unescape "\{". (closes vim/vim#8917)
https://github.com/vim/vim/commit/21c1a0c2f10575dbb72fa873d33f0c1f6e170aa7
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index 93b5e4d1cf..e42510c17f 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -900,6 +900,12 @@ func Test_cmdline_complete_various() call feedkeys(":unlet one two\<C-A>\<C-B>\"\<CR>", 'xt') call assert_equal("\"unlet one two", @:) + " completion for the :buffer command with curlies + edit \{someFile} + call feedkeys(":buf someFile\<C-A>\<C-B>\"\<CR>", 'xt') + call assert_equal("\"buf {someFile}", @:) + bwipe {someFile} + " completion for the :bdelete command call feedkeys(":bdel a b c\<C-A>\<C-B>\"\<CR>", 'xt') call assert_equal("\"bdel a b c", @:) |