From 786037cffc93c59d9be1206513ff26dae746c172 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 4 Mar 2016 13:35:27 +0000 Subject: [PATCH] Always place clang completion function info above the anchor When placed below, it will hide the main selection cursor when editing the second line of a multiple line parameter list. --- rc/extra/clang.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/extra/clang.kak b/rc/extra/clang.kak index a06c55831..f25f0d746 100644 --- a/rc/extra/clang.kak +++ b/rc/extra/clang.kak @@ -99,7 +99,7 @@ def -hidden clang-show-completion-info %[ try %[ %sh[ desc=$(echo "${kak_opt_clang_completions}" | sed -e 's/\([^\\]\):/\1\n/g; s/\\:/:/g' | grep "^${kak_selection}@" | head -n1 | sed -e 's/.*[^\\]@\(.*[^\\]\)@.*$/\1/' ) if [ -n "$desc" ]; then - echo "eval -client $kak_client %{info -anchor ${kak_cursor_line}.${kak_cursor_column} %{${desc}}}" + echo "eval -client $kak_client %{info -anchor ${kak_cursor_line}.${kak_cursor_column} -placement above %{${desc}}}" fi ] ] ] ]