From d5e0426a7700682c6a8048920ce46b8fd92ed9c6 Mon Sep 17 00:00:00 2001 From: Dimitar Dimitrov Date: Fri, 21 Oct 2016 15:01:09 +0100 Subject: [PATCH] Avoid problems when the message contains comas --- rc/base/lint.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/base/lint.kak b/rc/base/lint.kak index dc8bb4f7c..ff8bb170d 100644 --- a/rc/base/lint.kak +++ b/rc/base/lint.kak @@ -81,7 +81,7 @@ def lint-next -docstring "Jump to the next line that contains an error" %{ %sh{ while read -r line do # get line,column pair - coords="${line%,*}" + coords=$(printf %s "$line" | cut -d, -f1,2) candidate="${coords%,*}" if [ "$candidate" -gt "$kak_cursor_line" ] then