diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-14 12:41:25 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-03-14 13:09:57 +0800 |
commit | 61b48e91b941258e6945e3eafadc777dccef5b75 (patch) | |
tree | 132b06712a25cc34f93883a9ea63c26b4ce4bf45 /test | |
parent | 090d1fd0b86897d2f5a80a600becf1525398ef30 (diff) | |
download | rneovim-61b48e91b941258e6945e3eafadc777dccef5b75.tar.gz rneovim-61b48e91b941258e6945e3eafadc777dccef5b75.tar.bz2 rneovim-61b48e91b941258e6945e3eafadc777dccef5b75.zip |
vim-patch:9.1.0177: Coverity reports dead code
Problem: Coverity reports dead code.
Solution: Remove the dead code. Also fix a mistake in ml_get_pos_len()
and update some comments (zeertzjq).
closes: vim/vim#14189
https://github.com/vim/vim/commit/8c55d60658b7ee3458dca57fc5eec90ca9bb9bf3
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_normal.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/old/testdir/test_normal.vim b/test/old/testdir/test_normal.vim index 91c058df9e..d31ae488d9 100644 --- a/test/old/testdir/test_normal.vim +++ b/test/old/testdir/test_normal.vim @@ -2370,6 +2370,14 @@ func Test_normal30_changecase() %d call assert_beeps('norm! ~') + " Test with multiple lines + call setline(1, ['AA', 'BBBB', 'CCCCCC', 'DDDDDDDD']) + norm! ggguG + call assert_equal(['aa', 'bbbb', 'cccccc', 'dddddddd'], getline(1, '$')) + norm! GgUgg + call assert_equal(['AA', 'BBBB', 'CCCCCC', 'DDDDDDDD'], getline(1, '$')) + %d + " Test for changing case across lines using 'whichwrap' call setline(1, ['aaaaaa', 'aaaaaa']) normal! gg10~ |