Use same idiom as for lint-next

This commit is contained in:
Dimitar Dimitrov 2016-11-02 14:18:38 +00:00
parent 05f7ab7568
commit 9a87e7fdff

View File

@ -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