Skip to content
Snippets Groups Projects
Unverified Commit 8d23646f authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Revert "Short-circuit ANSI processing if no ANSI codes are found"

This reverts commit 656963e0.
parent 656963e0
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment