From 7c82839773575ddf18d5459639b8ef0ed7205aeb Mon Sep 17 00:00:00 2001 From: Tony Kovanen Date: Thu, 30 Oct 2014 12:54:16 +0200 Subject: [PATCH] Add color reset after linenum --- spot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spot.sh b/spot.sh index 141e5a2..020eceb 100755 --- a/spot.sh +++ b/spot.sh @@ -159,9 +159,9 @@ $cyan\1$reset \\ while(i > 0) { # Build match string with `...` in front if not beginning of line and `...` in the tail if (i > 3) { - line = reset linenum"..."substr(str, i - (mline / 2), mline)"..." + line = reset linenum reset "..."substr(str, i - (mline / 2), mline)"..." } else { - line = reset linenum substr(str, i, (mline / 2))"..." + line = reset linenum reset substr(str, i, (mline / 2))"..." } # Strip colors if colors are disabled