karb94 / neoscroll.nvim

Smooth scrolling neovim plugin written in lua
MIT License
1.46k stars 36 forks source link

Fix double speed when cursor is on edges. #30

Closed genesistms closed 3 years ago

genesistms commented 3 years ago

If cursor is on top (H) or bottom (L). The speed for <c-d> and <c-u> are doubled because of bad counting for lines behind and lines before.

karb94 commented 3 years ago

Thank you for reporting this. The counting of lines behind was correct. It was the fact that I moved the cursor before the screen (and not the other way around) that caused this. I just pushed a fix.