1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-25 13:30:07 +00:00

Squashed 'gitstatus/' changes from 0d23fbd1..0f5402c8

0f5402c8 bug fix: properly propagate switches to gitstatusd

git-subtree-dir: gitstatus
git-subtree-split: 0f5402c8686a593cd21b95ade28a154dd51749bb
This commit is contained in:
Roman Perepelitsa 2020-06-22 19:18:34 +02:00
parent 0717e57ff4
commit eadfdba707

View file

@ -516,7 +516,7 @@ function gitstatus_start"${1:-}"() {
args+=(-$opt $OPTARG) args+=(-$opt $OPTARG)
[[ $opt == m ]] && dirty_max_index_size=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});; +(e|U|W|D)) args=(${(@)args:#-$opt});;
\?) print -ru2 -- "gitstatus_start: invalid option: $OPTARG" ; return 1;; \?) print -ru2 -- "gitstatus_start: invalid option: $OPTARG" ; return 1;;
:) print -ru2 -- "gitstatus_start: missing required argument: $OPTARG"; return 1;; :) print -ru2 -- "gitstatus_start: missing required argument: $OPTARG"; return 1;;