diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-13 20:42:26 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-13 20:42:26 +0100 |
commit | 8c55d60658b7ee3458dca57fc5eec90ca9bb9bf3 (patch) | |
tree | dddeb0a5cbbbf48122ed92f5ee1ab512d852ac22 /src/testdir/test_normal.vim | |
parent | 253ff4dece4e6cc4a9ff3ed935bc78f832b6fb7c (diff) |
patch 9.1.0177: Coverity reports dead codev9.1.0177
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: #14189
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir/test_normal.vim')
-rw-r--r-- | src/testdir/test_normal.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim index dc68a158a1..b18063747b 100644 --- a/src/testdir/test_normal.vim +++ b/src/testdir/test_normal.vim @@ -2364,6 +2364,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~ |