Skip to content

Fixed zz doesn't center the due to wrapped line#76

Merged
karb94 merged 7 commits intokarb94:masterfrom
chomosuke:fix-zz
Jan 15, 2023
Merged

Fixed zz doesn't center the due to wrapped line#76
karb94 merged 7 commits intokarb94:masterfrom
chomosuke:fix-zz

Conversation

@chomosuke
Copy link
Copy Markdown
Contributor

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.

simplescreenrecorder-2023-01-07_21.11.19-converted.mp4

This PR fixes that:

simplescreenrecorder-2023-01-07_21.12.36-converted.mp4

@karb94
Copy link
Copy Markdown
Owner

karb94 commented Jan 15, 2023

Thank you @chomosuke!

@karb94 karb94 merged commit d7601c2 into karb94:master Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants