From e9e15e6a44f6efd2938dbca62e317edaffb68f82 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Fri, 15 May 2020 12:21:02 +0300 Subject: [PATCH] rc spell: Simplify selection-descriptions parsing Remove everything after the first pipe sign. Pop the timestamp. --- rc/tools/spell.kak | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rc/tools/spell.kak b/rc/tools/spell.kak index 1a5698be..dde7a6dc 100644 --- a/rc/tools/spell.kak +++ b/rc/tools/spell.kak @@ -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