From cad0572ca52f0ac206b574b5445ddbcdcc25742f Mon Sep 17 00:00:00 2001 From: Tim Allen Date: Thu, 13 Feb 2020 20:18:12 +1100 Subject: [PATCH] rc lint: Re-add missing kakquote functions. --- rc/tools/lint.kak | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rc/tools/lint.kak b/rc/tools/lint.kak index 5f36f9689..914043361 100644 --- a/rc/tools/lint.kak +++ b/rc/tools/lint.kak @@ -344,6 +344,9 @@ define-command \ update-option buffer lint_messages evaluate-commands %sh{ + # This is going to come in handy later. + kakquote() { printf "%s" "$*" | sed "s/'/''/g; 1s/^/'/; \$s/\$/'/"; } + eval "set -- ${kak_quoted_opt_lint_messages}" shift @@ -377,6 +380,9 @@ define-command \ update-option buffer lint_messages evaluate-commands %sh{ + # This is going to come in handy later. + kakquote() { printf "%s" "$*" | sed "s/'/''/g; 1s/^/'/; \$s/\$/'/"; } + eval "set -- ${kak_quoted_opt_lint_messages}" shift