diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-02 05:57:46 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-02 05:58:51 +0800 |
commit | c57c25649be1d942a7f9ad78e26ac221a3239099 (patch) | |
tree | 1e3f728cc95e5990fdebf8f1f00cb2f0f6ce26ed | |
parent | d4b9f8186d4a73a661a407efb63fe8abca2c4e88 (diff) | |
download | rneovim-c57c25649be1d942a7f9ad78e26ac221a3239099.tar.gz rneovim-c57c25649be1d942a7f9ad78e26ac221a3239099.tar.bz2 rneovim-c57c25649be1d942a7f9ad78e26ac221a3239099.zip |
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
-rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 3 |
1 files changed, 3 insertions, 0 deletions
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\<S-Left>\<C-U>\<C-B>\"\<CR>", 'tx') call assert_equal('"def', @:, e) + + " This was going before the start in latin1. + call feedkeys(": \<C-W>\<CR>", 'tx') endfor let &encoding = encoding_save |