summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Allen <screwtape@froup.com>2018-07-10 18:55:47 +1000
committerTim Allen <screwtape@froup.com>2018-07-10 18:55:47 +1000
commitbc0cd64ecf213ce76be861ba15a275136da50804 (patch)
tree61272bd155ebbbca2c5985cbf788b2592fcbb2de
parentb06ad0650747f79034e64dce60832ff824b3cb84 (diff)
racer.kak: Fix more fallout from the recent quoting changes.
-rw-r--r--rc/extra/racer.kak8
1 files changed, 4 insertions, 4 deletions
diff --git a/rc/extra/racer.kak b/rc/extra/racer.kak
index 3b3524a3..373f9c4f 100644
--- a/rc/extra/racer.kak
+++ b/rc/extra/racer.kak
@@ -7,7 +7,7 @@ define-command racer-complete -docstring "Complete the current selection with ra
printf %s\\n "set-option buffer racer_tmp_dir ${dir}"
printf %s\\n "evaluate-commands -no-hooks %{ write ${dir}/buf }"
}
- nop %sh{
+ evaluate-commands %sh{
dir=${kak_opt_racer_tmp_dir}
(
cursor="${kak_cursor_line} $((${kak_cursor_column} - 1))"
@@ -16,7 +16,7 @@ define-command racer-complete -docstring "Complete the current selection with ra
BEGIN { FS = "\t"; ORS = ":" }
/^PREFIX/ {
column = ENVIRON["kak_cursor_column"] + $2 - $3
- print ENVIRON["kak_cursor_line"] "." column "\\@" ENVIRON["kak_timestamp"]
+ print ENVIRON["kak_cursor_line"] "." column "@@" ENVIRON["kak_timestamp"]
}
/^MATCH/ {
word = $2
@@ -80,7 +80,7 @@ define-command racer-complete -docstring "Complete the current selection with ra
}
define-command racer-enable-autocomplete -docstring "Add racer completion candidates to the completer" %{
- set-option window completers "option=racer_completions:%opt{completers}"
+ set-option window completers option=racer_completions %opt{completers}
hook window -group racer-autocomplete InsertIdle .* %{ try %{
execute-keys -draft <a-h><a-k>([\w\.]|::).\z<ret>
racer-complete
@@ -89,7 +89,7 @@ define-command racer-enable-autocomplete -docstring "Add racer completion candid
}
define-command racer-disable-autocomplete -docstring "Disable racer completion" %{
- set-option window completers %sh{ printf %s\\n "'${kak_opt_completers}'" | sed 's/option=racer_completions://g' }
+ evaluate-commands %sh{ printf "set-option window completers %s\n" $(printf %s "${kak_opt_completers}" | sed -e "s/'option=racer_completions'//g") }
remove-hooks window racer-autocomplete
unalias window complete racer-complete
}