clang.kak: Use echo instead of printf %s as the latter has problems with newlines

This commit is contained in:
Maxime Coste 2016-01-13 10:27:53 +00:00
parent 032219b119
commit 1c418be498

View File

@ -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{ def clang-diagnostics-next -docstring "Jump to the next line that contains an error" %{ %sh{
printf %s "${kak_opt_clang_errors}" | ( echo "${kak_opt_clang_errors}" | (
line=-1 line=-1
first_line=-1 first_line=-1
while read line_content; do while read line_content; do