From e482b3f14c0dbb0748a0d8e2023eefee69deb936 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Tue, 29 Oct 2019 09:51:16 +0100 Subject: [PATCH] share kakrc: Use `fail` in the `:colorscheme` command When an invalid colorscheme is selected from the user configuration file, the editor doesn't report any errors at startup unless the `fail` command is used. --- share/kak/kakrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/kak/kakrc b/share/kak/kakrc index cd70642b..d01224e3 100644 --- a/share/kak/kakrc +++ b/share/kak/kakrc @@ -21,7 +21,7 @@ def -params 1 -docstring "colorscheme : enable named colorscheme" \ if [ -n "${filename}" ]; then printf 'source %%{%s}' "${filename}" else - echo "echo -markup '{Error}No such colorscheme'" + echo "fail 'No such colorscheme'" fi }}