fix(scroll): don't animate 1 line scrolls (jk). Closes #1620
Some checks are pending
CI / ci (push) Waiting to run

This commit is contained in:
Folke Lemaitre 2025-10-21 23:57:09 +02:00
parent 92a08cece7
commit d293b21fe1
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -260,7 +260,7 @@ function M.check(win)
stats.mousescroll = stats.mousescroll + 1
state.current = vim.deepcopy(state.view)
return
elseif math.abs(state.view.topline - state.current.topline) == 0 then
elseif math.abs(state.view.topline - state.current.topline) <= 1 then
stats.skipped = stats.skipped + 1
state.current = vim.deepcopy(state.view)
return