From 314f1a7c2168ee7e99e2d2b348146df092341a64 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 13 Jul 2022 13:47:01 +0800 Subject: vim-patch:8.2.0369: various Normal mode commands not fully tested Problem: Various Normal mode commands not fully tested. Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5751) https://github.com/vim/vim/commit/1671f4488105ee12a6a8558ae351436c26ab55fc Cherry-pick a fix from patch 8.2.3162. Omit test_iminsert.vim as previous patches to that file are N/A, and Nvim doesn't support iminsert=2 either, so that test isn't useful. --- src/nvim/testdir/test_increment.vim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/nvim/testdir/test_increment.vim') diff --git a/src/nvim/testdir/test_increment.vim b/src/nvim/testdir/test_increment.vim index 12fe52f057..2559654f25 100644 --- a/src/nvim/testdir/test_increment.vim +++ b/src/nvim/testdir/test_increment.vim @@ -776,6 +776,14 @@ func Test_increment_empty_line() call setline(1, ['0', '0', '0', '0', '0', '0', '']) exe "normal Gvgg\" call assert_equal(['1', '1', '1', '1', '1', '1', ''], getline(1, 7)) + + " Ctrl-A/Ctrl-X should do nothing in operator pending mode + %d + call setline(1, 'one two') + exe "normal! c\l" + exe "normal! c\l" + call assert_equal('one two', getline(1)) + bwipe! endfunc -- cgit