summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2020-05-15 12:21:02 +0300
committerFrank LENORMAND <lenormf@gmail.com>2020-05-15 12:21:02 +0300
commite9e15e6a44f6efd2938dbca62e317edaffb68f82 (patch)
tree88bc233d3b1d3ee77519adc9600a125122843736
parent7db90621222078da696e8c8e5ee4b01e521edae9 (diff)
rc spell: Simplify selection-descriptions parsing
Remove everything after the first pipe sign. Pop the timestamp.
-rw-r--r--rc/tools/spell.kak5
1 files 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