diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-21 06:41:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-21 06:41:44 +0800 |
commit | 10459e1ed0fe6429b15705567135c55e0778b262 (patch) | |
tree | 9ff51a7708101ad4607bb0a180bc88f70c2538b7 /test | |
parent | 18062f70d81ee8d3d9dcad2fe3afe8e2431cbbdf (diff) | |
parent | 0c91cb4f03814bfdfe262c6d2693c6883c38719b (diff) | |
download | rneovim-10459e1ed0fe6429b15705567135c55e0778b262.tar.gz rneovim-10459e1ed0fe6429b15705567135c55e0778b262.tar.bz2 rneovim-10459e1ed0fe6429b15705567135c55e0778b262.zip |
Merge pull request #24805 from zeertzjq/vim-9.0.1753
vim-patch:9.0.{1753,1761}: g<End>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_normal.vim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/old/testdir/test_normal.vim b/test/old/testdir/test_normal.vim index c672f32827..4eaab0d792 100644 --- a/test/old/testdir/test_normal.vim +++ b/test/old/testdir/test_normal.vim @@ -4117,4 +4117,26 @@ func Test_normal_click_on_double_width_char() let &mouse = save_mouse endfunc +func Test_normal33_g_cmd_nonblank() + " 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>" + 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>" + call assert_equal(11, col('.')) + normal 0g$ + call assert_equal(20, col('.')) + exe "normal 0g\<kEnd>" + call assert_equal(11, col('.')) + bw! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |