summaryrefslogtreecommitdiff
path: root/src/ansi.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-08-26 03:24:42 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-08-26 03:24:42 +0900
commitaf809c966150f4623f9316e8b63e146491134e50 (patch)
tree6154e9deb5e0278694a48874724abbc609163ba8 /src/ansi.go
parent329de8f41664ab0e10ad934abe3623a07988e83f (diff)
downloadfzf-af809c966150f4623f9316e8b63e146491134e50.tar.gz
Minor refactorings
Diffstat (limited to 'src/ansi.go')
-rw-r--r--src/ansi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ansi.go b/src/ansi.go
index e1c85291..d7c81d30 100644
--- a/src/ansi.go
+++ b/src/ansi.go
@@ -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
}