neoscroll.nvim icon indicating copy to clipboard operation
neoscroll.nvim copied to clipboard

Fixed zz doesn't center the due to wrapped line

Open chomosuke opened this issue 2 years ago • 0 comments

When there's wrapped line, sometimes scroll_one_line scroll more than one graphical line, this causes relative_line to be recorded wrong.

This means that if you're dealing with files with a lot of very long lines, typing zz scrolls more than it should. Sometimes no matter how many times you type zz you never get the cursor to center, it simply oscillate as it overshoots every time.

chomosuke avatar Jun 20 '22 05:06 chomosuke