mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-01 12:42:01 -07:00
Allow other options to follow --color without spec
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
Reference in New Issue
Block a user