-
-
Notifications
You must be signed in to change notification settings - Fork 808
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 alternate-screen scrolling #6186
base: main
Are you sure you want to change the base?
Conversation
Yeah, i'm able to reproduce something like the bug in #6099 after applying this PR. So, i'm not sure what the correct answer is to fix that problem, while not breaking alt-mode mux |
I'm busy until next week, then I'll take a look at what the difference between |
Hi tbung, Looking for a test case, I found that the problem from #6099 isn't limited to
But for Neovim, you have to compile a custom terminal entry that removes smcup:
In either case, the split window problem, where the status bar floats up The problem is that whenever an extra line is inserted in the upper scroll |
Hey @tbung, I've had a couple kicks at the can already, but couldn't help trying again. Pushed an update that resolves the issues I was seeing. Let me know what you think. Hopefully it saves you a bit of time. |
Works beautifully, thanks for figuring it out! Also, really nice that you added tests for both bugs now. This should now finally mean that #4607 is solved. |
Hi @tbung That's great. I did just make a small push, to move the invalidation logic to the end of the function, which makes more logical sense, and fix a small comment in the tests. But it's otherwise unchanged. We'll just see what Wez says now, and if any other cleanups or anything else is needed. |
Awesome that this is getting fixed 👍 Is the check "owner approval" referring to @loops in this case? |
Hi Wez,
Did the test case you requested, but it didn't demonstrate the problem. So
after staring at it a bit more, found this one-liner. Hope it's okay.