mirror of
https://github.com/junegunn/fzf.git
synced 2026-05-19 23:10:06 +08:00
Minor refactorings
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user