go-tools.kak: Fix go-disable-autocomplete

As described in #2191
This commit is contained in:
Maxime Coste 2018-07-08 21:02:51 +10:00
parent 79ec8d0010
commit 2659912220

View File

@ -51,7 +51,7 @@ define-command go-enable-autocomplete -docstring "Add gocode completion candidat
}
define-command go-disable-autocomplete -docstring "Disable gocode completion" %{
set-option window completers %sh{ printf %s\\n "'${kak_opt_completers}'" | sed 's/option=gocode_completions://g' }
set-option window completers %sh{ printf %s\\n "${kak_opt_completers}" | sed "s/'option=gocode_completions'//g" }
remove-hooks window go-autocomplete
unalias window complete go-complete
}