From 7b9ad45178fc2f53c4824ad42213c340bdd66ebf Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 8 Dec 2022 22:52:25 +0800 Subject: vim-patch:8.2.1634: loop to handle keys for the command line is too long (#21340) Problem: Loop to handle keys for the command line is too long. Solution: Move a few more parts to separate functions. (Yegappan Lakshmanan, closes vim/vim#6895) https://github.com/vim/vim/commit/9c929713b7588f2e44a1533809d2ba0bbd2631be --- src/nvim/testdir/test_cmdline.vim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index b9da4ca7bb..218a2143e8 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -1100,6 +1100,15 @@ func Test_cmdline_complete_various() " completion after a range followed by a pipe (|) character call feedkeys(":1,10 | chist\t\\"\", 'xt') call assert_equal('"1,10 | chistory', @:) + + " use as the 'wildchar' for completion + set wildchar= + call feedkeys(":g/a\\xb/clearj\\\"\", 'xt') + call assert_equal('"g/a\xb/clearjumps', @:) + " pressing twice should cancel the command + call feedkeys(":chist\\", 'xt') + call assert_equal('"g/a\xb/clearjumps', @:) + set wildchar& endfunc func Test_cmdline_write_alternatefile() -- cgit