diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-20 18:24:20 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-20 18:24:20 +0200 |
commit | 654bdbbd329e7267051cc2eb496bc52b66053081 (patch) | |
tree | 3b745a01f6ba366db56792db959805c5413fa436 /src/testdir | |
parent | 6ac1544e13d78e0deeca1f357d1d73947180171c (diff) |
patch 9.0.1761: g<kEnd> behaves different from g<end>v9.0.1761
Problem: g<kEnd> behaves different from g<end>
Solution: Make g<kEnd> behave like g<End>
closes: #12861
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_normal.vim | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim index 92d1134d7e..efda142d1d 100644 --- a/src/testdir/test_normal.vim +++ b/src/testdir/test_normal.vim @@ -4105,20 +4105,24 @@ func Test_normal_click_on_double_width_char() endfunc func Test_normal33_g_cmd_nonblank() - " Test that g$ goes to the last non-blank char and g<end> to the last + " Test that g<End> goes to the last non-blank char and g$ to the last " visible column 20vnew setlocal nowrap nonumber signcolumn=no call setline(1, ['fooo fooo fooo fooo fooo fooo fooo fooo ']) - exe "normal 0g\<end>" + exe "normal 0g\<End>" call assert_equal(11, col('.')) normal 0g$ call assert_equal(20, col('.')) + exe "normal 0g\<kEnd>" + call assert_equal(11, col('.')) setlocal wrap - exe "normal 0g\<end>" + exe "normal 0g\<End>" call assert_equal(11, col('.')) normal 0g$ call assert_equal(20, col('.')) + exe "normal 0g\<kEnd>" + call assert_equal(11, col('.')) bw! endfunc |