rc lint: Prevent diagnostics from being expanded

Fixes #2629
This commit is contained in:
Frank LENORMAND 2018-12-13 10:42:52 +03:00
parent 0e1e0fc57b
commit 9b9aedd175

View File

@ -100,7 +100,7 @@ ${i}"
printf %s\\n "${s}" | awk -v line="${kak_cursor_line}" \
-v column="${kak_cursor_column}" \
"/^${kak_cursor_line}\./"' {
gsub(/"/, "\"\"")
gsub(/"|%/, "&&")
msg = substr($0, index($0, "|"))
sub(/^[^ \t]+[ \t]+/, "", msg)
printf "info -anchor %d.%d \"%s\"\n", line, column, msg