summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-03-10 12:41:01 +0000
committerMaxime Coste <mawww@kakoune.org>2017-03-10 12:41:01 +0000
commitb9317ba38c3e8f2bc4196705d65bbc8a8ef8dbf4 (patch)
tree9a223ee9f677a10b1ce414375f3b2c3d32c676f1
parente888dae787dbc12fdafd564dbf5e3c184fde7266 (diff)
Change lint.kak column display to put it at the end
-rw-r--r--rc/base/lint.kak4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/base/lint.kak b/rc/base/lint.kak
index 339b627f..acaf993c 100644
--- a/rc/base/lint.kak
+++ b/rc/base/lint.kak
@@ -41,10 +41,10 @@ def lint -docstring 'Parse the current buffer with a linter' %{
}
}
/:[0-9]+:[0-9]+:/ {
- errors = errors $2 "," $3 ",c" $3 " " substr($4,2) ":"
+ errors = errors $2 "," $3 "," substr($4,2) ":"
# fix case where $5 is not the last field because of extra :s in the message
for (i=5; i<=NF; i++) errors = errors $i ":"
- errors = substr(errors, 1, length(errors)-1) "\n"
+ errors = substr(errors, 1, length(errors)-1) " (col " $3 ")\n"
}
END {
print "set \"buffer=" file "\" lint_flags %{" stamp ":" substr(flags, 1, length(flags)-1) "}"