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
29 lines
381 B
Plaintext
29 lines
381 B
Plaintext
abcd
|
|
abcde
|
|
abcdef
|
|
ABCDEFG
|
|
ABCDEFGH
|
|
ABCDEFGHIJ
|
|
abcdefghijk
|
|
abcdefghijklmnop
|
|
ABCDEFGHIJKLMNOPQRST
|
|
abcdefghijklmnopqrstuvwxyz
|
|
BBBBBBBBBBBBBBDDDD
|
|
QQQQQQQQQQABCDEFGHIJ
|
|
QQQQQQQQQQABCDEFGHIJKLMNOPQRSTQQQQQQQQQ
|
|
QQQQQQQQQQABCDEFGHIJKLMNOPQRSTQQQQQQQQQQ
|
|
QQQQQQQQQQABCDEFGHIJPQRSTQQQQQQQQQQ
|
|
qrstuvwxyz
|
|
qwerty
|
|
QWERTYUIOP
|
|
qwertyuiopasdfg
|
|
ZAAZZ
|
|
ZABBZ
|
|
ZBAZZ
|
|
ZBBBZ
|
|
ZBBZZ
|
|
ZYXWVUT
|
|
ZZBBZ
|
|
ZZZBB
|
|
ZZZBZ
|