Skip to content

Commit

Permalink
added '[' ']' to zshCompQuoteFlagDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Jun 12, 2019
1 parent f2b07da commit d51929f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zsh_completions.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,5 +332,7 @@ func zshCompFlagCouldBeSpecifiedMoreThenOnce(f *pflag.Flag) bool {
}

func zshCompQuoteFlagDescription(s string) string {
return strings.Replace(s, "'", `'\''`, -1)
return strings.NewReplacer("'", `'\''`,
"[", `\[`,
"]", `\]`).Replace(s)
}

0 comments on commit d51929f

Please sign in to comment.