Skip to content

Commit

Permalink
Add color reset after linenum
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Kovanen committed Oct 30, 2014
1 parent 2266197 commit 7c82839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spot.sh
Expand Up @@ -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
Expand Down

0 comments on commit 7c82839

Please sign in to comment.