diff --git a/src/ansi.go b/src/ansi.go index 70ec5609cdf8106d4e0906c09cf09e4ce4e3ef13..5856bd5745c2190fe377cc09fdb8d948203a8832 100644 --- a/src/ansi.go +++ b/src/ansi.go @@ -74,11 +74,8 @@ func extractColor(str string, state *ansiState, proc func(string, *ansiState) bo for idx := 0; idx < len(str); { idx += findAnsiStart(str[idx:]) + // No sign of ANSI code if idx == len(str) { - // No sign of ANSI code - if len(offsets) == 0 { - return str, nil, state - } break }