]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0260: Problems with "zb" and scrolling to new topline with 'smoothscroll' v9.1.0260
authorLuuk van Baal <luukvbaal@gmail.com>
Wed, 3 Apr 2024 20:50:40 +0000 (22:50 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 3 Apr 2024 20:50:40 +0000 (22:50 +0200)
commitbd28cae1f1c21c0e3743e3427c98bbd848fad237
tree7315d51209769e86873e7efa13ce4cc47b9c68f3
parent08d2401fbc6de2606aca69add401e2ffca772aa2
patch 9.1.0260: Problems with "zb" and scrolling to new topline with 'smoothscroll'

Problem: "zb" does not reveal filler lines at the start of a buffer.
          Scrolled cursor position with 'smoothscroll' is unpredictable,
          and may reset skipcol later if it is not visible (after v9.1.258)
Solution: Replace confusing for loop that reaches final control value too
          early with while loop. Set "w_curswant" accordingly so cursor
          will be placed in visible part of topline.
          (Luuk van Baal)

closes: #14394

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/move.c
src/testdir/test_normal.vim
src/testdir/test_scroll_opt.vim
src/version.c