1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-28 01:00:28 +03:00

clang: fix auto completion when cursor is on end of line

This commit is contained in:
Maxime Coste 2013-03-14 20:40:43 +01:00
parent 17b2d8c052
commit 0ca23f9ebd

View File

@ -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" }
}}
}