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
When using & to trigger align_selection, the editor only aligns based on the amount of characters, without taking into account that some characters may be wider than the others, like tab (0x09).
Reproduction Steps
I tried this:
hx
wrote
abcde # this line contains a tab
abcde # this line contains spaces
(i [tab] [enter/linefeed] [4 spaces (depending on your tab width)] [esc] [A-C] i abcde [esc])
3. typed &
I expected this to happen:
the 2 cursors should have appeared vertically aligned (they probably already were)
Instead, this happened:
the cursor on the line with a tab character has been padded out with n-1 spaces, where n is the width of a tab
Summary
When using
&
to triggeralign_selection
, the editor only aligns based on the amount of characters, without taking into account that some characters may be wider than the others, like tab (0x09).Reproduction Steps
I tried this:
hx
(i [tab] [enter/linefeed] [4 spaces (depending on your tab width)] [esc] [A-C] i abcde [esc])
3. typed &
I expected this to happen:
the 2 cursors should have appeared vertically aligned (they probably already were)
Instead, this happened:
the cursor on the line with a tab character has been padded out with n-1 spaces, where n is the width of a tab
Helix log
No response
Platform
Ubuntu on WSL2.0
Terminal Emulator
WSL2.0
Helix Version
helix 22.05 (e405e88)
The text was updated successfully, but these errors were encountered: