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="${kak_selection_desc%%,*}"
anchor_col="${anchor_col##*.}" anchor_col="${anchor_col##*.}"
start_first="${kak_opt_spell_regions#* }" start_first="${kak_opt_spell_regions%%|*}"
start_first="${start_first%%|*}" start_first="${start_first#* }"
start_first="${start_first#\'}"
find_next_word_desc() { find_next_word_desc() {
## XXX: the `spell` command adds sorted selection descriptions to the range ## XXX: the `spell` command adds sorted selection descriptions to the range