1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-27 12:16:22 +03:00

Use printf instead of echo in colorscheme completer

This commit is contained in:
Maxime Coste 2016-01-10 10:27:02 +00:00
parent 2f8612f8e7
commit 273b541959

View File

@ -7,7 +7,7 @@ def -params 1.. runtime %{ %sh{
def -params 1 -docstring "colorscheme <name>: enable named colorscheme" \
-shell-completion %{
prefix=$(echo ${1} | cut -c-${kak_pos_in_token})
prefix=$(printf %s "$1" | cut -c-${kak_pos_in_token})
(
localconfdir=${XDG_CONFIG_HOME:-${HOME}/.config}/kak
for col in ${kak_runtime}/colors/*.kak ${localconfdir}/colors/*.kak; do