clang.kak: Fix escaping in clang-show-error-info

This commit is contained in:
Maxime Coste 2015-11-17 13:25:48 +00:00
parent 20bd4173e2
commit 99f53edd10

View File

@ -112,7 +112,10 @@ def clang-disable-autocomplete -docstring "Disable automatic clang completion" %
def -hidden clang-show-error-info %{ %sh{
echo "${kak_opt_clang_errors}" | while read line; do
case "${line}" in
${kak_cursor_line},*) echo "info -anchor ${kak_cursor_line}.${kak_cursor_column} %{${line#*,}}" ;;
${kak_cursor_line},*)
desc=$(echo ${line#*,} | sed -e "s/'/\\\\'/g")
echo "info -anchor ${kak_cursor_line}.${kak_cursor_column} '${desc}'"
;;
esac
done
} }