]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0414: Unable to leave long line with 'smoothscroll' and 'scrolloff' v9.1.0414
authorLuuk van Baal <luukvbaal@gmail.com>
Thu, 16 May 2024 18:44:09 +0000 (20:44 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 16 May 2024 18:44:09 +0000 (20:44 +0200)
commitb32055e504ebd4f6183a93b92b08d61dad61c841
tree708aebf9a879d5d3de1e671ebf06a754f968e778
parentf5c8f520baed35584a456f25b038d59f41d420b6
patch 9.1.0414: Unable to leave long line with 'smoothscroll' and 'scrolloff'

Problem:  Unable to leave long line with 'smoothscroll' and 'scrolloff'.
          Corrupted screen near the end of a long line with 'scrolloff'.
          (Ernie Rael, after 9.1.0280)
Solution: Only correct cursor in case scroll_cursor_bot() was not itself
          called to make the cursor visible. Avoid adjusting for
          'scrolloff' beyond the text line height (Luuk van Baal)

fixes: #14726
closes: #14783

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
12 files changed:
src/move.c
src/testdir/dumps/Test_smooth_long_6.dump
src/testdir/dumps/Test_smooth_long_7.dump
src/testdir/dumps/Test_smooth_long_scrolloff_1.dump [new file with mode: 0644]
src/testdir/dumps/Test_smooth_long_scrolloff_2.dump [new file with mode: 0644]
src/testdir/dumps/Test_smooth_long_scrolloff_3.dump [new file with mode: 0644]
src/testdir/dumps/Test_smooth_long_scrolloff_4.dump [new file with mode: 0644]
src/testdir/dumps/Test_smooth_long_scrolloff_5.dump [new file with mode: 0644]
src/testdir/dumps/Test_smooth_long_scrolloff_6.dump [new file with mode: 0644]
src/testdir/dumps/Test_smooth_long_scrolloff_7.dump [new file with mode: 0644]
src/testdir/test_scroll_opt.vim
src/version.c