-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Clamp the new rows scrolling value to a positive number #5630
Conversation
Fixes #5540 |
I'm working on a test for this, so hopefully we can catch this if it regresses. Since this is a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, and booting up a renderer isn't weird or bad or scary here?
@DHowett-MSFT nah, we don't have a thread so it's fine, and the RoundtripTests already do something similar |
Hello @zadjii-msft! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
🎉 Handy links: |
Summary of the Pull Request
This PR clamp the "new rows" scrolling value to a positive number. We can't create a negative number of new rows. It also adds a test.
References
PR Checklist
Detailed Description of the Pull Request / Additional comments
The origin of this bug is that as newlines are emitted, we'll accumulate an enormous scroll delta into a selection region, to the point of overflowing a
SHORT
. When the overflow occurs, theTerminal
would fail to send aNotifyScroll()
to theTermControl
hosting it.For this bug to repro, we need to:
Validation Steps Performed