You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The background highlighting of the selected range doesn't extend all the way to the left as it should when tabs are partially displayed as the leftmost visible character.
Notice how, in the screenshot above, the background of the leftmost character is not highlighted, even though the partially visible tab that occupies that space is part of the selection.
It's definitely an edge case, but it might be more noticeable with especially wide tab widths and small windows.
Reproduction Steps
I tried this:
hx
Position the view so a selected tab is partially visible.
I expected this to happen:
The background of the partially visible tab is highlighted, just like the rest of the selection.
mtoohey31
changed the title
Background of tab selection highlighting doesn't extend all the way to the left
Background of selected, partially visible tabs is un-highlighted
Jul 7, 2022
I don't have the exact same text any more because I've refactored that code, but you can reproduce the same issue using an empty file of any language that uses tab indentation:
Open helix
:set-language go
Insert a tab then a bunch of repeated characters; enough to completely fill the screen horizontally
Move to the start of the line on top of the tab and enter visual mode
Start moving the character to the right while still in visual mode. As soon as the view moves to the left for the first time, the highlighting for the background of the selected tab will disappear, even though 3 of its characters are still visible. I would expect that the background of the partial tab would still be highlighted.
Edit: Also yes, this happens without indent-guides. I can reproduce it with the default configuration.
Summary
The background highlighting of the selected range doesn't extend all the way to the left as it should when tabs are partially displayed as the leftmost visible character.
Notice how, in the screenshot above, the background of the leftmost character is not highlighted, even though the partially visible tab that occupies that space is part of the selection.
It's definitely an edge case, but it might be more noticeable with especially wide tab widths and small windows.
Reproduction Steps
I tried this:
hx
I expected this to happen:
The background of the partially visible tab is highlighted, just like the rest of the selection.
Instead, this happened:
The background isn't highlighted.
Helix log
No response
Platform
Linux
Terminal Emulator
kitty 0.25.2
Helix Version
b612211
The text was updated successfully, but these errors were encountered: