From d4216efd7533f39c7b25695831631905a8324bd8 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 7 Nov 2013 18:50:16 +0000 Subject: [PATCH] clang.kak: wrap clang-autocomplete hook in a try %{} --- src/rc/clang.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rc/clang.kak b/src/rc/clang.kak index d1a675bb..5b6c4677 100644 --- a/src/rc/clang.kak +++ b/src/rc/clang.kak @@ -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 (\.|->|::).$ echo 'completing...' clang-complete - } + } } } def clang-disable-autocomplete %{ rmhooks window clang-autocomplete }