From 45d26442056feae1dcb6718d8925d97b6cf055e1 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 10 Jul 2022 10:27:31 +0800 Subject: 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 --- src/nvim/testdir/test_cmdline.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nvim/testdir') 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\\\"\", 'xt') call assert_equal("\"unlet one two", @:) + " completion for the :buffer command with curlies + edit \{someFile} + call feedkeys(":buf someFile\\\"\", 'xt') + call assert_equal("\"buf {someFile}", @:) + bwipe {someFile} + " completion for the :bdelete command call feedkeys(":bdel a b c\\\"\", 'xt') call assert_equal("\"bdel a b c", @:) -- cgit From b3b85186ed7d85b5f2a7c3918c3d391e6abb2cfc Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 10 Jul 2022 10:58:09 +0800 Subject: vim-patch:8.2.3531: command line completion test fails on MS-Windows Problem: Command line completion test fails on MS-Windows. Solution: Do not test with "\{" on MS-Windows. https://github.com/vim/vim/commit/39c47c310487b72bc78ff197b5a068a0bcf830de --- src/nvim/testdir/test_cmdline.vim | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index e42510c17f..4207e4767e 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -901,10 +901,13 @@ func Test_cmdline_complete_various() call assert_equal("\"unlet one two", @:) " completion for the :buffer command with curlies - edit \{someFile} - call feedkeys(":buf someFile\\\"\", 'xt') - call assert_equal("\"buf {someFile}", @:) - bwipe {someFile} + " FIXME: what should happen on MS-Windows? + if !has('win32') + edit \{someFile} + call feedkeys(":buf someFile\\\"\", 'xt') + call assert_equal("\"buf {someFile}", @:) + bwipe {someFile} + endif " completion for the :bdelete command call feedkeys(":bdel a b c\\\"\", 'xt') -- cgit