From b7dd5056ba07199c480c3b5fbaacc0ce26f24d17 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 3 Mar 2016 19:28:45 +0000 Subject: [PATCH] Tweak clang.kak --- rc/extra/clang.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/extra/clang.kak b/rc/extra/clang.kak index 16150eac0..a06c55831 100644 --- a/rc/extra/clang.kak +++ b/rc/extra/clang.kak @@ -123,7 +123,7 @@ def clang-disable-autocomplete -docstring "Disable automatic clang completion" % unalias window complete clang-complete } -def -allow-override -hidden clang-show-error-info %{ %sh{ +def -hidden clang-show-error-info %{ %sh{ printf %s "${kak_opt_clang_errors}" | grep "^${kak_cursor_line},.*" | if read line; then desc=$(printf %s "${line}" | sed -e "s/^[[:digit:]]\+,//g; s/'/\\\\'/g") echo "info -anchor ${kak_cursor_line}.${kak_cursor_column} '${desc}'" @@ -141,7 +141,7 @@ def clang-disable-diagnostics -docstring "Disable automatic diagnostics of the c } def clang-diagnostics-next -docstring "Jump to the next line that contains an error" %{ %sh{ - echo "${kak_opt_clang_errors}" | ( + printf "%s\n" "${kak_opt_clang_errors}" | ( line=-1 first_line=-1 while read line_content; do