mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-25 10:32:19 +03:00
clang.kak: Fix escaping in clang-show-error-info
This commit is contained in:
parent
20bd4173e2
commit
99f53edd10
@ -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
|
||||
} }
|
||||
|
Loading…
Reference in New Issue
Block a user