Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 7 commits into from
Jan 15, 2023
Merged

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

merged 7 commits into from
Jan 15, 2023

Conversation

chomosuke
Copy link
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
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