Another case of the virtual bottom being miscalculated #17458

Open
opened 2026-01-31 05:43:09 +00:00 by claunia · 0 comments
Owner

Originally created by @j4james on GitHub (May 10, 2022).

Windows Terminal version

Commit ec726e7ba7

Windows build number

10.0.19041.1415

Other Software

vttest

Steps to reproduce

  1. Open a bash shell in conhost.
  2. Immediately run vttest.
  3. Select test 4 (Test of double-sized characters).
  4. Press enter twice until it gets to the 132-column test.

Expected Behavior

It should display a 132-column version of the test output with examples of double width and double height content.

Actual Behavior

The page appears mostly blank, but if you scroll back in the buffer, you can see the test content has rendered on the page above (partially overwriting the previous test). This doesn't seem to happen (at least not consistently) if you've already scrolled down in the buffer when you start the test.

I believe this is another victim of PR #12972. And it looks like the source of the problem is again in the ResizeWithReflow code, which picks a position for the virtual bottom that isn't far enough down. I think this is because the majority of the page is blank at the time of the resize.

Originally created by @j4james on GitHub (May 10, 2022). ### Windows Terminal version Commit ec726e7ba70b760f98eb1e1ea1d71124536783c0 ### Windows build number 10.0.19041.1415 ### Other Software [vttest](https://www.invisible-island.net/vttest/) ### Steps to reproduce 1. Open a bash shell in conhost. 2. Immediately run vttest. 3. Select test 4 (Test of double-sized characters). 4. Press enter twice until it gets to the 132-column test. ### Expected Behavior It should display a 132-column version of the test output with examples of double width and double height content. ### Actual Behavior The page appears mostly blank, but if you scroll back in the buffer, you can see the test content has rendered on the page above (partially overwriting the previous test). This doesn't seem to happen (at least not consistently) if you've already scrolled down in the buffer when you start the test. I believe this is another victim of PR #12972. And it looks like the source of the problem is again in the `ResizeWithReflow` code, which picks a position for the virtual bottom that isn't far enough down. I think this is because the majority of the page is blank at the time of the resize.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17458