mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-04 20:47:49 +00:00
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); {
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user