Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Commit

Permalink
Merge pull request #5 from barskern/bug/unescaped-colon
Browse files Browse the repository at this point in the history
Escape colon in zsh completion help
  • Loading branch information
pksunkara authored Feb 3, 2020
2 parents 2785989 + 255f7dd commit d837355
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shells/zsh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ fn write_positionals_of(p: &App) -> String {
.help
.map_or("".to_owned(), |v| " -- ".to_owned() + v)
.replace("[", "\\[")
.replace("]", "\\]"),
.replace("]", "\\]")
.replace(":", "\\:"),
action = arg
.possible_vals
.as_ref()
Expand Down

0 comments on commit d837355

Please sign in to comment.