Closed greenfork closed 3 years ago
I got this too.
FWIW, it seems to work ok on other lines.
Also, the direction of the selection seems to matter.
If the selection is started from the left (the beginning of the buffer) to some other position on the same line, the problem doesn't occur for me.
I don't know if this is an appropriate patch, but the following has worked in light testing here:
(when (and (= (gb :caret) 0)
(not selection))
That's making a change around here: https://github.com/saikyun/freja/blob/9a7eefea90d390999cc58d889af46d250705cc1f/freja/new_gap_buffer.janet#L660
@saikyun How does that look?
Merged PR, thanks!
Expected: deletes selected text Real: nothing happens