mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(scroll): don't bother setting cursor when scrolloff is larger than half of viewport. Fixes #240
This commit is contained in:
parent
26c3e4960f
commit
0ca9ca7992
1 changed files with 1 additions and 0 deletions
|
@ -217,6 +217,7 @@ function M.check(win)
|
|||
}, config.animate)
|
||||
)
|
||||
end
|
||||
if state.scrolloff < (info.botline - info.topline) / 2 then
|
||||
end
|
||||
|
||||
---@private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue