]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1388: Scrolling one line too far with 'nosmoothscroll' page scrolling v9.1.1388
authorLuuk van Baal <luukvbaal@gmail.com>
Wed, 14 May 2025 18:21:55 +0000 (20:21 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 14 May 2025 18:21:55 +0000 (20:21 +0200)
commitc6c72d165c90e94eee1d9107d82fb180ed138190
tree22128adc93e8d411a6bfe3a4228cf4012b774f01
parent0077282c8209e5a3893d74a0176ab21895c5de4e
patch 9.1.1388: Scrolling one line too far with 'nosmoothscroll' page scrolling

Problem:  One-off error in "count" to make "w_skipcol" zero with
          'nosmoothscroll' page scrolling when last virtual line
          in a buffer line is exactly the entire window width.
          (Hirohito Higashi)
Solution: Properly compute the smallest integer value necessary
          to make "w_skipcol" zero (Luuk van Baal)

fixes: #17317
closes: #17318

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/version.c