-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Description
Environment
Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.9.433.0
Steps to reproduce
- From WSL, echo a line of text containing a literal tab character, long enough to cause the tab character to render AFTER Terminal line-wraps the line (e.g. on a second line).
- Resize Terminal, increasing its width enough so that the whole line of text now fits on a single line
- Print the same line of text again.
Expected behavior
The second printing of the text is printed in a single line, with the tab producing the expected amount of horizontal whitespace.
Actual behavior
The line of text is corrupted, with the tab consuming too much horizontal whitespace (= the full remaining width of the window - 1), causing the line to sill be wrapped across multiple lines as well.
I would assume this is related to the various problems listed in #4200, but I don't see this specifically mentioned (though some of the issues listed there are beyond my ability to grok).
Fully fleshed-out example:
Assuming an initial window width of approximately 80 characters, here's an example command that will print a suitable line:
echo -e "123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 Hardtab:\t123456789 123456789 123456789 123456789"On a smallish window, that renders something like this:
If you then resize the window wide enough that the output line is reflowed onto a single line...
... and then re-run the echo you get something clearly quite wrong:


