clang.kak: wrap clang-autocomplete hook in a try %{}
This commit is contained in:
parent
bfbb44d994
commit
d4216efd75
|
@ -29,11 +29,11 @@ def clang-complete %{
|
|||
}
|
||||
|
||||
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>
|
||||
echo 'completing...'
|
||||
clang-complete
|
||||
}
|
||||
} }
|
||||
}
|
||||
|
||||
def clang-disable-autocomplete %{ rmhooks window clang-autocomplete }
|
||||
|
|
Loading…
Reference in New Issue
Block a user