From 55d381999e4570c8a146b978e6770fbb5e3d0c8b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 11 Apr 2016 21:12:36 +0100 Subject: [PATCH] Avoid stderr message from cut when completing colorschemes --- share/kak/kakrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/kak/kakrc b/share/kak/kakrc index 9d1eced1..130f9b1f 100644 --- a/share/kak/kakrc +++ b/share/kak/kakrc @@ -7,7 +7,7 @@ def -params 1.. runtime %{ %sh{ def -params 1 -docstring "colorscheme : enable named colorscheme" \ -shell-completion %{ - prefix=$(printf %s "$1" | cut -c-${kak_pos_in_token}) + prefix=$(printf %s "$1" | cut -c1-${kak_pos_in_token} 2> /dev/null) ( localconfdir=${XDG_CONFIG_HOME:-${HOME}/.config}/kak for col in ${kak_runtime}/colors/*.kak ${localconfdir}/colors/*.kak; do