dircolors with background color set highlights to end of line #7360
Labels
Area-Output
Related to output processing (inserting text into buffer, retrieving buffer text, etc.)
Area-VT
Virtual Terminal sequence support
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
Priority-2
A description (P2)
Product-Terminal
The new Windows Terminal.
Resolution-By-Design
It's supposed to be this way. Sometimes for compatibility reasons.
Environment
Steps to reproduce
I am using zsh on WSL Ubuntu.
Put the following in ~/.dircolors:
OTHER_WRITABLE 30;42
Then run:
eval $( dircolors -b $HOME/.dircolors )
Finally, fill up the terminal screen (e.g. pressing ENTER repeatedly) so that prompt is at the bottom of the window, and run:
ls -l
Expected behavior
When running
ls -l
to view a writable directory, the directory name should be highlighted.Actual behavior
If the highlighted directory name spans across a newline, and the ls output scrolls past the bottom of the window, then the entire second line is highlighted.
See screenshot below. The second
ls -l
caused the terminal to scroll past the bottom of the window, and long_dir_name is incorrectly highlighted.The text was updated successfully, but these errors were encountered: