Use same idiom as for lint-next
This commit is contained in:
parent
05f7ab7568
commit
9a87e7fdff
|
@ -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 | {
|
printf '%s\n' "$kak_opt_lint_errors" | sort -t, -k1,1 -rn | {
|
||||||
while read -r line
|
while read -r line
|
||||||
do
|
do
|
||||||
# get line,column pair
|
coords=$(printf %s "$line" | cut -d, -f1,2)
|
||||||
coords="${line%,*}"
|
|
||||||
candidate="${coords%,*}"
|
candidate="${coords%,*}"
|
||||||
if [ "$candidate" -lt "$kak_cursor_line" ]
|
if [ "$candidate" -lt "$kak_cursor_line" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user