Revert "Short-circuit ANSI processing if no ANSI codes are found"
This reverts commit 656963e018
.
This commit is contained in:
parent
656963e018
commit
8d23646fe6
@ -74,11 +74,8 @@ func extractColor(str string, state *ansiState, proc func(string, *ansiState) bo
|
|||||||
for idx := 0; idx < len(str); {
|
for idx := 0; idx < len(str); {
|
||||||
idx += findAnsiStart(str[idx:])
|
idx += findAnsiStart(str[idx:])
|
||||||
|
|
||||||
if idx == len(str) {
|
|
||||||
// No sign of ANSI code
|
// No sign of ANSI code
|
||||||
if len(offsets) == 0 {
|
if idx == len(str) {
|
||||||
return str, nil, state
|
|
||||||
}
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user