diff options
Diffstat (limited to 'src/ansi.go')
-rw-r--r-- | src/ansi.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ansi.go b/src/ansi.go index e1c85291..d7c81d30 100644 --- a/src/ansi.go +++ b/src/ansi.go @@ -79,7 +79,7 @@ func extractColor(str string, state *ansiState, proc func(string, *ansiState) bo // Make sure that we found an ANSI code offset := ansiRegex.FindStringIndex(str[idx:]) - if offset == nil { + if len(offset) < 2 { idx++ continue } |