From a6d73bb928064ae19fb79f55d07453dc108761ec Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 23 Oct 2014 19:25:39 +0100 Subject: [PATCH] Fix tag command, using IFS is a *bad* idea --- rc/ctags.kak | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rc/ctags.kak b/rc/ctags.kak index 4d84aad7..a307efdb 100644 --- a/rc/ctags.kak +++ b/rc/ctags.kak @@ -12,8 +12,7 @@ def -shell-params \ %{ %sh{ export tagname=${1:-${kak_selection}} ( - IFS=':' - for tags in ${kak_opt_ctagsfiles}; do + for tags in $(echo "${kak_opt_ctagsfiles}" | tr ':' '\n'); do readtags -t "${tags}" ${tagname} done ) | awk -F '\t|\n' -e '