Use %~~ for delimiting to avoid issues with braces in the message

This commit is contained in:
Dimitar Dimitrov 2016-11-01 20:31:24 +00:00
parent e7970232d3
commit ae339dc3c4

View File

@ -48,7 +48,9 @@ def lint -docstring 'Parse the current buffer with a linter' %{
}
END {
print "set \"buffer=" file "\" lint_flags %{" stamp ":" substr(flags, 1, length(flags)-1) "}"
print "set \"buffer=" file "\" lint_errors %{" substr(errors, 1, length(errors)-1) "}"
errors = substr(errors, 1, length(errors)-1)
gsub("~", "\\~", errors)
print "set \"buffer=" file "\" lint_errors %~" errors "~"
}
' "$dir"/stderr | kak -p "$kak_session"