1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-09-20 01:08:33 +03:00

rc spell: Simplify selection-descriptions parsing

Remove everything after the first pipe sign. Pop the timestamp.
This commit is contained in:
Frank LENORMAND 2020-05-15 12:21:02 +03:00
parent 7db9062122
commit e9e15e6a44

View File

@ -93,9 +93,8 @@ define-command spell-next %{ evaluate-commands %sh{
anchor_col="${kak_selection_desc%%,*}"
anchor_col="${anchor_col##*.}"
start_first="${kak_opt_spell_regions#* }"
start_first="${start_first%%|*}"
start_first="${start_first#\'}"
start_first="${kak_opt_spell_regions%%|*}"
start_first="${start_first#* }"
find_next_word_desc() {
## XXX: the `spell` command adds sorted selection descriptions to the range