[PR #5550] Don't remove spaces when printing a new bottom line with a background color #26360

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

Original Pull Request: https://github.com/microsoft/terminal/pull/5550

State: closed
Merged: Yes


Turns out we're still being a bit too aggressive when removing spaces.
If there are spaces at the end of the first run painted to a bottom
line, and the bottom line was a different color than the previous,
then we can't trim those spaces off the string. We still need to emit
those to make sure the terminal has colored spaces in it as well.

References

  • there's like 80 PRs in the last month for this function

PR Checklist

Validation Steps

  • ran the tests
  • checked that vtpipeterm still worked
  • Checked that the bug was fixed in the Terminal
**Original Pull Request:** https://github.com/microsoft/terminal/pull/5550 **State:** closed **Merged:** Yes --- Turns out we're still being a bit too aggressive when removing spaces. If there are spaces at the end of the first run painted to a bottom line, _and the bottom line was a different color than the previous_, then we can't trim those spaces off the string. We still need to emit those to make sure the terminal has colored spaces in it as well. ## References * there's like 80 PRs in the last month for this function ## PR Checklist * [x] Closes #5502 * [x] I work here * [x] Tests added/passed ## Validation Steps * [x] ran the tests * [x] checked that vtpipeterm still worked * [x] Checked that the bug was fixed in the Terminal
claunia added the pull-request label 2026-01-31 09:15:35 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26360