From d79e680e716d9552cbb4c11a5d3cc778dc75d0cc Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 26 Feb 2018 12:24:12 +0000 Subject: [PATCH] Remove trailing ':' from racer execution When AWK processes the racer response, it adds a trailing ':' that kakoune completion expects to lead to a row having an 'a|b|c' shape, but it's empty instead. Removing the extra ':' allows the racer complation to actually work. --- rc/extra/racer.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/extra/racer.kak b/rc/extra/racer.kak index a1bb48662..20f6c3679 100644 --- a/rc/extra/racer.kak +++ b/rc/extra/racer.kak @@ -45,7 +45,7 @@ define-command racer-complete -docstring "Complete the current selection with ra }' ) printf %s\\n "evaluate-commands -client '${kak_client}' %{ - set-option buffer=${kak_bufname} racer_completions %@${compl}@ + set-option buffer=${kak_bufname} racer_completions %@${compl: : -1}@ }" | kak -p ${kak_session} rm -r ${dir} ) > /dev/null 2>&1 < /dev/null &