Skip to content

Commit

Permalink
bug fix: properly propagate switches to gitstatusd
Browse files Browse the repository at this point in the history
  • Loading branch information
romkatv authored Jun 22, 2020
1 parent 0d23fbd commit 0f5402c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitstatus.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ function gitstatus_start"${1:-}"() {
args+=(-$opt $OPTARG)
[[ $opt == m ]] && dirty_max_index_size=OPTARG
;;
e|U|W|D) args+=$opt;;
e|U|W|D) args+=-$opt;;
+(e|U|W|D)) args=(${(@)args:#-$opt});;
\?) print -ru2 -- "gitstatus_start: invalid option: $OPTARG" ; return 1;;
:) print -ru2 -- "gitstatus_start: missing required argument: $OPTARG"; return 1;;
Expand Down

0 comments on commit 0f5402c

Please sign in to comment.