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

fix: fix flakey scroll history #2935

Merged
merged 4 commits into from
Nov 30, 2023
Merged

fix: fix flakey scroll history #2935

merged 4 commits into from
Nov 30, 2023

Conversation

xuanyuan300
Copy link
Contributor

Fixes #2881.
Regarding #2881, I found that if I set $TERM=linux or vt100, execute the less command, exit, and then scroll up, flakey scrolling history happens.
When the less command is executed, the b'M' instruction will be generated and the move_cursor_up_with_scrolling function will be called. At this time, the viewport should insert the canonical row (there is actually a comment in the code). After testing, it seems normal.
I'm not sure if my understanding is correct. Looking forward to your feedback.

@imsnif
Copy link
Member

imsnif commented Nov 30, 2023

Good catch, thank you!

@imsnif imsnif merged commit b221e47 into zellij-org:main Nov 30, 2023
6 checks passed
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.

Flakey scroll history after scrolling up inside less
2 participants