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:
parent
00673eba36
commit
786037cffc
|
@ -99,7 +99,7 @@ def -hidden clang-show-completion-info %[ try %[
|
||||||
%sh[
|
%sh[
|
||||||
desc=$(echo "${kak_opt_clang_completions}" | sed -e 's/\([^\\]\):/\1\n/g; s/\\:/:/g' | grep "^${kak_selection}@" | head -n1 | sed -e 's/.*[^\\]@\(.*[^\\]\)@.*$/\1/' )
|
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
|
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
|
fi
|
||||||
] ]
|
] ]
|
||||||
] ]
|
] ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user