From 397e5ef0e1999e4a7514d4aced28765a3ea54753 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 8 Oct 2017 11:20:07 +0800 Subject: [PATCH] Fix potential bug in clang.kak --- rc/extra/clang.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/extra/clang.kak b/rc/extra/clang.kak index 2382bedb..fbc822e1 100644 --- a/rc/extra/clang.kak +++ b/rc/extra/clang.kak @@ -163,7 +163,7 @@ def clang-diagnostics-next -docstring "Jump to the next line that contains an er printf "%s\n" "${kak_opt_clang_errors}" | sed -e 's/\([^\\]\):/\1\n/g' | tail -n +2 | ( while IFS='|' read candidate rest; do first_line=${first_line-$candidate} - if [ $candidate -gt $kak_cursor_line ]; then + if [ "$candidate" -gt $kak_cursor_line ]; then line=$candidate break fi