fix(scroll): don't bother setting cursor when scrolloff is larger than half of viewport. Fixes #240

This commit is contained in:
Folke Lemaitre 2024-12-11 09:53:00 +01:00
parent 26c3e4960f
commit 0ca9ca7992
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -217,6 +217,7 @@ function M.check(win)
}, config.animate)
)
end
if state.scrolloff < (info.botline - info.topline) / 2 then
end
---@private