diff --git a/src/rc/clang.kak b/src/rc/clang.kak index 6b089b84..3fb17fc1 100644 --- a/src/rc/clang.kak +++ b/src/rc/clang.kak @@ -31,7 +31,7 @@ def clang-complete %{ def clang-enable-autocomplete %{ hook window InsertIdle .* %{ eval -restore-selections %{ - exec h - %sh{ [[ $kak_selection =~ .*(\.|->|::)$ ]] && echo "exec l; echo 'completing...'; clang-complete" } + exec + %sh{ [[ $kak_selection =~ .*(\.|->|::).$ ]] && echo "exec ; echo 'completing...'; clang-complete" } }} }