summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc <marc.esquerra@ynap.com>2018-02-26 12:24:12 +0000
committerMarc <marc.esquerra@ynap.com>2018-02-26 12:24:12 +0000
commitd79e680e716d9552cbb4c11a5d3cc778dc75d0cc (patch)
tree688ac772b6e5717c53d8b6931be5b22eab953db5
parent386e66f868d2fb3c7bf86df0fc50eba1f42a96b5 (diff)
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.
-rw-r--r--rc/extra/racer.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/extra/racer.kak b/rc/extra/racer.kak
index a1bb4866..20f6c367 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 &