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: only change stable row offset if screen has scrollback #6099

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

tbung
Copy link
Contributor

@tbung tbung commented Sep 6, 2024

I noticed, that in specific circumstances some lines are moving in a way they are not supposed to in alternate screen mode. Particularly noticeable in neovim.

wezterm_bug_demo.mp4

Turns out, when scrolling in a mux window, the viewport is moved down even if there is not supposed to be a scrollback (like in altenate screen mode). I added a check in the corresponding scroll method.

Together with #5981 this was part of the issues described in #4607.

@wez wez merged commit f911e48 into wez:main Sep 14, 2024
1 check was pending
wez added a commit that referenced this pull request Sep 14, 2024
We should avoid nudging the scrollback position when there is no
scrollback allowed in this other case as well.

refs: #6099
@wez
Copy link
Owner

wez commented Sep 14, 2024

Thanks!

loops added a commit to loops/wezterm that referenced this pull request Sep 27, 2024
@tbung fixed a scrolling bug in wez#6099.  This patch just
adds some tests and takes care of a couple corner cases
that still remained with region scrolling.
loops added a commit to loops/wezterm that referenced this pull request Sep 28, 2024
@tbung fixed a scrolling bug in wez#6099.  This patch just
adds some tests and takes care of a couple corner cases
that still remained with region scrolling.
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