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.
This commit is contained in:
Maxime Coste 2016-03-04 13:35:27 +00:00
parent 00673eba36
commit 786037cffc

View File

@ -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
] ]
] ]