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

Commit

Permalink
Escape colon in zsh completion help
Browse files Browse the repository at this point in the history
  • Loading branch information
barskern committed Oct 2, 2019
1 parent 2785989 commit 255f7dd
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 255f7dd

Please sign in to comment.