`SelectWordLeft`/`SelectWordRight` behave inconsistently for non-word characters
injust opened this issue · comments
Description of the problem or steps to reproduce
- Type this:
[]
- Put the cursor at the beginning of the line and perform the action
SelectWordRight
-- this selects the[
- Do it again and it selects both
[
and]
- Put the cursor at the end of the line and perform the action
SelectWordLeft
-- this selects the]
- Do it again and nothing changes
It seems like SelectWordLeft
cannot select the first character in a file if it is a non-word character.
Specifications
Commit hash: 68d88b57
OS: macOS Sonoma 14.5
Terminal: Ghostty
I tried testing using micro v2.0.13 but nothing changed when SelectWordRight
is done at end of line so I think you performed SelectWordLeft
. I do not specifically know how it was changed but selection behavior was changed at 78fcf2f. Both brackets are selected when selecting word at left and right with the changes done in the commit.
There is no release where the change is included but the nightly releases in GitHub can be downloaded and used.
I tried testing using micro v2.0.13 but nothing changed when
SelectWordRight
is done at end of line so I think you performedSelectWordLeft
.
Ugh you're correct, sorry for the bad copy/paste. Edited to fix.
Confirmed fixed on version 2.0.14-dev.227
(commit hash: a10624cc
)