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
Having multiple cursors on different lines and pressing o/O to insert a line beneath/above each of them behaves unexpectedly, see below for details. I suspect there is a calculation for how many characters each cursor needs to be moved forward that gets messed up by the lines being inserted.
Reproduction Steps
o case
Have a file with two lines, say
foo
bar
Have a cursor on of each line
Press o
Expected
foo
|
bar
|
(| is a cursor)
Actual
foo
|
bar|
The second newline is inserted, but the cursor isn't moved to it, it's moved to the end of the current line. It doesn't matter which cursor is the primary, only the order in the file matters. The result for 3 lines is even weirder:
Summary
Having multiple cursors on different lines and pressing
o
/O
to insert a line beneath/above each of them behaves unexpectedly, see below for details. I suspect there is a calculation for how many characters each cursor needs to be moved forward that gets messed up by the lines being inserted.Reproduction Steps
o
caseo
Expected
(
|
is a cursor)Actual
The second newline is inserted, but the cursor isn't moved to it, it's moved to the end of the current line. It doesn't matter which cursor is the primary, only the order in the file matters. The result for 3 lines is even weirder:
becomes
O
case:Setup as above, but press
O
Expected
Actual
Helix log
Platform
macOS 15.0.1
Terminal Emulator
kitty 0.34.1
Installation Method
flake
Helix Version
helix 25.01 (e01775a)
The text was updated successfully, but these errors were encountered: