summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-10-21 19:20:00 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-10-21 19:20:16 +0900
commitcfdb00b9718822b6ab2018a47288d5be3a32d07c (patch)
tree8dfe47e8f8a32eaba68123bb9d807bb1d925dfeb /src
parent9b9ad3914380dccefa9280805522d3ee37638bb6 (diff)
downloadfzf-cfdb00b9718822b6ab2018a47288d5be3a32d07c.tar.gz
Allow other options to follow --color without spec
Diffstat (limited to 'src')
-rw-r--r--src/options.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.go b/src/options.go
index f586e5e0..a7f01887 100644
--- a/src/options.go
+++ b/src/options.go
@@ -246,7 +246,7 @@ func nextString(args []string, i *int, message string) string {
}
func optionalNextString(args []string, i *int) string {
- if len(args) > *i+1 {
+ if len(args) > *i+1 && !strings.HasPrefix(args[*i+1], "-") {
*i++
return args[*i]
}