From c57c25649be1d942a7f9ad78e26ac221a3239099 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 2 Aug 2022 05:57:46 +0800 Subject: [PATCH] vim-patch:8.2.4899: with latin1 encoding CTRL-W might go before the cmdline Problem: With latin1 encoding CTRL-W might go before the start of the command line. Solution: Check already being at the start of the command line. https://github.com/vim/vim/commit/ef02f16609ff0a26ffc6e20263523424980898fe --- src/nvim/testdir/test_cmdline.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index 094c6fd8d4..7aac731709 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -642,6 +642,9 @@ func Test_cmdline_remove_char() call feedkeys(":abc def\\\\"\", 'tx') call assert_equal('"def', @:, e) + + " This was going before the start in latin1. + call feedkeys(": \\", 'tx') endfor let &encoding = encoding_save