summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-03-14 20:40:43 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-03-14 20:40:43 +0100
commit0ca23f9ebd0bf3b48178c7fd1c90d04c2ad05b4a (patch)
tree315df52c7aa217c1b48d8294c9e57f2ac7826fb6 /src
parent17b2d8c052a7f1fc3a95d18dd2eb692318467cdb (diff)
clang: fix auto completion when cursor is on end of line
Diffstat (limited to 'src')
-rw-r--r--src/rc/clang.kak4
1 files changed, 2 insertions, 2 deletions
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<a-h>
- %sh{ [[ $kak_selection =~ .*(\.|->|::)$ ]] && echo "exec <a-space>l; echo 'completing...'; clang-complete" }
+ exec <a-h>
+ %sh{ [[ $kak_selection =~ .*(\.|->|::).$ ]] && echo "exec <a-space>; echo 'completing...'; clang-complete" }
}}
}