1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-18 08:51:46 +03:00

Remove clang cleanup hooks once they ran

This commit is contained in:
Maxime Coste 2014-11-05 21:12:29 +00:00
parent 66c8738aca
commit 23d6b0ea2d

View File

@ -18,7 +18,10 @@ def clang-complete %{
edit! -fifo ${dir}/fifo *clang-output*
set buffer filetype make
set buffer _make_current_error_line 0
hook buffer BufCloseFifo .* %{ nop %sh{ rm -r ${dir} } }
hook -group clang-cleanup buffer BufCloseFifo .* %{
nop %sh{ rm -r ${dir} }
rmhooks buffer clang-cleanup
}
}"
# this runs in a detached shell, asynchronously, so that kakoune does not hang while clang is running.
# As completions references a cursor position and a buffer timestamp, only valid completions should be