From d12be9fdc14ea8dfb9c696352f259779e462a03e Mon Sep 17 00:00:00 2001 From: Brayden Date: Thu, 1 Oct 2015 11:38:58 -0700 Subject: [PATCH] Support paths with spaces for c-family :alt --- rc/c-family.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/c-family.kak b/rc/c-family.kak index 89e919e8..58ae6815 100644 --- a/rc/c-family.kak +++ b/rc/c-family.kak @@ -150,8 +150,8 @@ decl str-list alt_dirs ".;.." def c-family-alternative-file -docstring "Jump to the alternate file (header/implementation)" %{ %sh{ alt_dirs=$(echo ${kak_opt_alt_dirs} | sed -e 's/;/ /g') - file=$(basename ${kak_buffile}) - dir=$(dirname ${kak_buffile}) + file=$(basename "${kak_buffile}") + dir=$(dirname "${kak_buffile}") case ${file} in *.c|*.cc|*.cpp|*.cxx|*.C|*.inl|*.m)