librime
librime copied to clipboard
Editor's `back_syllable` removes multiple syllables when selecting a shorter candidate
Describe the bug
When multiple syllables are typed and the selector
is used to select a shorter candidate, this would leave some unused syllables un-highlighted.
If the back_syllable
action of the editor
is invoked, for example by hitting {Control+BackSpace}
, all the unhighlighted syllables (in this case shu'ru
) are removed, instead of only one of them.
To Reproduce Steps to reproduce the bug:
- This should happen also on the default configuration with stock
luna_pinyin
. I tested this on weasel 0.16.1 and librime 1.11.2. - Type
ce'shi'shu'ru
. - Use
{Down}
until you select the word測試
. - Hit
{Control+BackSpace}
to invokeback_syllable
and observe thatshu'ru
is removed, leaving onlyce'shi
in the input.
Expected behavior
Only one syllable (in our case shi
) shall be removed.
Flavor(please complete the following information): Select your flavor:
- [x] Weasel 0.16.1
Package:
- OS: Windows 11 version 22H2 build 22621.3672
- Version: librime 1.11.2