diff options
author | luukvbaal <luukvbaal@gmail.com> | 2023-05-14 00:03:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-14 06:03:03 +0800 |
commit | edfa8d6f2f2bc87f3d98b26ef3f8afbfdc8c5bde (patch) | |
tree | 0adceb7c7008945515f5d254db6ad579314eb92d /test/old/testdir/test_scroll_opt.vim | |
parent | 08991b078267e5de0a19a136d00d4f71ad651a32 (diff) | |
download | rneovim-edfa8d6f2f2bc87f3d98b26ef3f8afbfdc8c5bde.tar.gz rneovim-edfa8d6f2f2bc87f3d98b26ef3f8afbfdc8c5bde.tar.bz2 rneovim-edfa8d6f2f2bc87f3d98b26ef3f8afbfdc8c5bde.zip |
vim-patch:9.0.1551: position of marker for 'smoothscroll' not computed correctly (#23617)
Problem: Position of marker for 'smoothscroll' not computed correctly.
Solution: Take 'list' and other options into account. (Luuk van Baal,
closes vim/vim#12393)
https://github.com/vim/vim/commit/24b62ec8258cc7c9ca2c09f645f7f6b02584c892
Diffstat (limited to 'test/old/testdir/test_scroll_opt.vim')
-rw-r--r-- | test/old/testdir/test_scroll_opt.vim | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/old/testdir/test_scroll_opt.vim b/test/old/testdir/test_scroll_opt.vim index cf37195e1d..13ef4b76df 100644 --- a/test/old/testdir/test_scroll_opt.vim +++ b/test/old/testdir/test_scroll_opt.vim @@ -426,8 +426,7 @@ func Test_smoothscroll_cursor_position() " Test moving the cursor behind the <<< display with 'virtualedit' set virtualedit=all - exe "normal \<C-E>" - norm 3lgkh + exe "normal \<C-E>3lgkh" call s:check_col_calc(3, 2, 23) set virtualedit& @@ -499,6 +498,16 @@ func Test_smoothscroll_cursor_position() call s:check_col_calc(1, 3, 37) normal gg + " Test list + listchars "precedes", where there is always 1 overlap + " regardless of number and cpo-=n. + setl number list listchars=precedes:< cpo-=n + call s:check_col_calc(5, 1, 1) + exe "normal 2|\<C-E>" + call s:check_col_calc(6, 1, 18) + norm h + call s:check_col_calc(5, 2, 17) + normal gg + bwipe! endfunc |