clang.kak: wrap clang-autocomplete hook in a try %{}

This commit is contained in:
Maxime Coste 2013-11-07 18:50:16 +00:00
parent bfbb44d994
commit d4216efd75

View File

@ -29,11 +29,11 @@ def clang-complete %{
} }
def clang-enable-autocomplete %{ def clang-enable-autocomplete %{
hook window -id clang-autocomplete InsertIdle .* %{ hook window -id clang-autocomplete InsertIdle .* %{ try %{
exec -draft <space><a-h><a-k>(\.|->|::).$<ret> exec -draft <space><a-h><a-k>(\.|->|::).$<ret>
echo 'completing...' echo 'completing...'
clang-complete clang-complete
} } }
} }
def clang-disable-autocomplete %{ rmhooks window clang-autocomplete } def clang-disable-autocomplete %{ rmhooks window clang-autocomplete }