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.
This commit is contained in:
Frank LENORMAND 2019-10-29 09:51:16 +01:00
parent ec31d83972
commit e482b3f14c

View File

@ -21,7 +21,7 @@ def -params 1 -docstring "colorscheme <name>: enable named colorscheme" \
if [ -n "${filename}" ]; then if [ -n "${filename}" ]; then
printf 'source %%{%s}' "${filename}" printf 'source %%{%s}' "${filename}"
else else
echo "echo -markup '{Error}No such colorscheme'" echo "fail 'No such colorscheme'"
fi fi
}} }}