Use %~~ for delimiting to avoid issues with braces in the message
This commit is contained in:
parent
e7970232d3
commit
ae339dc3c4
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user