From 0a1c4ecf3d8850d6a7afc91c70b5aabc1ae81d12 Mon Sep 17 00:00:00 2001 From: Jan-Jaap Korpershoek Date: Thu, 26 Jul 2018 10:59:42 +0200 Subject: [PATCH 1/2] Add / behind add-highlighter path --- rc/base/mercurial.kak | 2 +- rc/base/spell.kak | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/base/mercurial.kak b/rc/base/mercurial.kak index fabc6d94..3480428a 100644 --- a/rc/base/mercurial.kak +++ b/rc/base/mercurial.kak @@ -21,6 +21,6 @@ hook -group hg-commit-highlight global WinSetOption filetype=(?!hg-commit).* %{ # ‾‾‾‾‾‾‾‾‾‾‾‾ hook -group hg-commit-highlight global WinSetOption filetype=hg-commit %{ - add-highlighter window group hg-commit-highlight + add-highlighter window/ group hg-commit-highlight add-highlighter window/hg-commit-highlight regex '^HG:[^\n]*' 0:MercurialCommitComment } diff --git a/rc/base/spell.kak b/rc/base/spell.kak index 2fe0ddaa..c1db1f10 100644 --- a/rc/base/spell.kak +++ b/rc/base/spell.kak @@ -9,7 +9,7 @@ Formats of language supported: - ISO language code, e.g. 'en' - language code above followed by a dash or underscore with an ISO country code, e.g. 'en-US'} \ spell %{ - try %{ add-highlighter window ranges 'spell_regions' } + try %{ add-highlighter window/ ranges 'spell_regions' } evaluate-commands %sh{ file=$(mktemp -d "${TMPDIR:-/tmp}"/kak-spell.XXXXXXXX)/buffer printf 'eval -no-hooks write -sync %s\n' "${file}" From db6f51b41174767c322867768de0c737fe0f7c0e Mon Sep 17 00:00:00 2001 From: Jan-Jaap Korpershoek Date: Thu, 26 Jul 2018 11:16:44 +0200 Subject: [PATCH 2/2] Fix unclosed string due to unescaped ' --- rc/base/spell.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/base/spell.kak b/rc/base/spell.kak index c1db1f10..0ef189e2 100644 --- a/rc/base/spell.kak +++ b/rc/base/spell.kak @@ -64,7 +64,7 @@ define-command spell-next %{ evaluate-commands %sh{ start_first="${kak_opt_spell_regions#* }" start_first="${start_first%%|*}" - start_first="${start_first#'}" + start_first="${start_first#\'}" find_next_word_desc() { ## XXX: the `spell` command adds sorted selection descriptions to the range