From 5e54705e26115e6ca77330b16744efb381ac902b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 31 Oct 2013 19:14:44 +0000 Subject: [PATCH] simplify clang-enable-autocomplete, no need for shell --- src/rc/clang.kak | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/rc/clang.kak b/src/rc/clang.kak index db9412dc..d1a675bb 100644 --- a/src/rc/clang.kak +++ b/src/rc/clang.kak @@ -29,10 +29,11 @@ def clang-complete %{ } def clang-enable-autocomplete %{ - hook window -id clang-autocomplete InsertIdle .* %{ eval -draft %{ - exec - %sh{ [[ $kak_selection =~ .*(\.|->|::).$ ]] && echo "exec ; eval -client $kak_client echo 'completing...'; clang-complete" } - }} + hook window -id clang-autocomplete InsertIdle .* %{ + exec -draft (\.|->|::).$ + echo 'completing...' + clang-complete + } } def clang-disable-autocomplete %{ rmhooks window clang-autocomplete }