Skip to content

Commit

Permalink
Reset state for found match
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Sep 9, 2019
1 parent 5f9449f commit 1ffa03f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion processor/printer/standard.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func WriteColored(content []byte, locations map[string][]int, in string, out str

for i, x := range content {


found = false
// Check if any of the locations match
for key, value := range locations {
for _, v := range value {
Expand All @@ -31,6 +31,7 @@ func WriteColored(content []byte, locations map[string][]int, in string, out str
}
}


str.WriteByte(x)

if i == end {
Expand Down

0 comments on commit 1ffa03f

Please sign in to comment.