From 9a87e7fdff79ce625601e69a17a5ba02a00880eb Mon Sep 17 00:00:00 2001 From: Dimitar Dimitrov Date: Wed, 2 Nov 2016 14:18:38 +0000 Subject: [PATCH] Use same idiom as for lint-next --- rc/base/lint.kak | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rc/base/lint.kak b/rc/base/lint.kak index 392d8dc4..11af5b2d 100644 --- a/rc/base/lint.kak +++ b/rc/base/lint.kak @@ -105,8 +105,7 @@ def lint-prev -docstring "Jump to the previous line that contains an error" %{ % printf '%s\n' "$kak_opt_lint_errors" | sort -t, -k1,1 -rn | { while read -r line do - # get line,column pair - coords="${line%,*}" + coords=$(printf %s "$line" | cut -d, -f1,2) candidate="${coords%,*}" if [ "$candidate" -lt "$kak_cursor_line" ] then