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
I can reproduce this. The reason this is happening is that due to gap indexing we are essentially deleting part of the selection (the cursor) which causes it to shrink. To solve this we need to do some kind of tricks for commands that delete forward.
The solutution I am leaning towards is extending the selection before apllying the transaction if head >= anchor. I might try to solve this in #6024 as I am touching the relevant code there anyway.
Open a new buffer using either
hx
orkak
.Replay these keystrokes.
ifoo<space>bar<esc>ghea<del><del><del><del><esc>
In Kakoune, the buffer reads "foo". in Helix, the buffer reads "bar".
AFAIK, when appending to a selection in Helix, pressing the delete key moves the selection back. This does not happen in Kakoune.
The text was updated successfully, but these errors were encountered: