From 832857ae094743bd17e36a0096d1da38fc383178 Mon Sep 17 00:00:00 2001 From: Luuk van Baal Date: Tue, 9 Apr 2024 21:41:54 +0200 Subject: vim-patch:9.1.0285: Still problems with cursor position for CTRL-D/U Problem: Problems with cursor position when scrolling half a page. Solution: Rework the cursor logic. (Luuk van Baal) https://github.com/vim/vim/commit/78c51500f1bb16501521d721d52cb0982f5e70b6 --- test/old/testdir/test_scroll_opt.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/old/testdir/test_scroll_opt.vim') diff --git a/test/old/testdir/test_scroll_opt.vim b/test/old/testdir/test_scroll_opt.vim index cb37b09707..50b0e13ba4 100644 --- a/test/old/testdir/test_scroll_opt.vim +++ b/test/old/testdir/test_scroll_opt.vim @@ -1031,10 +1031,10 @@ func Test_smoothscroll_page() call assert_equal(415, col('.')) exe "norm! \" call assert_equal(520, winsaveview().skipcol) - call assert_equal(535, col('.')) + call assert_equal(615, col('.')) exe "norm! \" call assert_equal(520, winsaveview().skipcol) - call assert_equal(735, col('.')) + call assert_equal(815, col('.')) exe "norm! \" call assert_equal(520, winsaveview().skipcol) call assert_equal(895, col('.')) @@ -1046,10 +1046,10 @@ func Test_smoothscroll_page() call assert_equal(495, col('.')) exe "norm! \" call assert_equal(0, winsaveview().skipcol) - call assert_equal(375, col('.')) + call assert_equal(295, col('.')) exe "norm! \" call assert_equal(0, winsaveview().skipcol) - call assert_equal(175, col('.')) + call assert_equal(95, col('.')) exe "norm! \" call assert_equal(0, winsaveview().skipcol) call assert_equal(15, col('.')) -- cgit