]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1385: inefficient loop for 'nosmoothscroll' scrolling v9.1.1385
authorLuuk van Baal <luukvbaal@gmail.com>
Mon, 12 May 2025 18:45:41 +0000 (20:45 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 12 May 2025 18:47:00 +0000 (20:47 +0200)
commitacf0ebe8a8f4dd389a8fe8cea52ff43bc8bfe1be
tree68a5919f4b49ecf7b721edb8b9cac782151caf04
parent13bea589a25707c8f9e29b2920410bdcccd79bc5
patch 9.1.1385: inefficient loop for 'nosmoothscroll' scrolling

Problem:  Loop that ensures "w_skipcol" is zero with 'nosmoothscroll'
  for (half)-page scrolling is inefficient.
Solution: Calculate the required "count" instead of looping until
  "w_skipcol" is zero (Luuk van Baal).

fixes: #17301
closes: #17306

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