added '[' ']' to zshCompQuoteFlagDescription

This commit is contained in:
rsteube 2018-11-07 14:19:54 +01:00
parent 21f39ca07e
commit f153050c5a

View file

@ -332,5 +332,7 @@ func zshCompFlagCouldBeSpecifiedMoreThenOnce(f *pflag.Flag) bool {
} }
func zshCompQuoteFlagDescription(s string) string { func zshCompQuoteFlagDescription(s string) string {
return strings.Replace(s, "'", `'\''`, -1) return strings.NewReplacer("'", `'\''`,
"[", `\[`,
"]", `\]`).Replace(s)
} }