aboutsummaryrefslogtreecommitdiff
path: root/gitstatus.plugin.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-06-22 20:18:34 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-06-22 20:18:34 +0300
commiteadfdba7073e625562ae02841608ea37a46e0120 (patch)
treeb2aa1e498741adbdecc90e2ea7fb60a106d50f3f /gitstatus.plugin.zsh
parent0717e57ff46201ff04e7d62cda8677e174a83be6 (diff)
Squashed 'gitstatus/' changes from 0d23fbd1..0f5402c8
0f5402c8 bug fix: properly propagate switches to gitstatusd git-subtree-dir: gitstatus git-subtree-split: 0f5402c8686a593cd21b95ade28a154dd51749bb
Diffstat (limited to 'gitstatus.plugin.zsh')
-rw-r--r--gitstatus.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitstatus.plugin.zsh b/gitstatus.plugin.zsh
index 0df36724..32c20f32 100644
--- a/gitstatus.plugin.zsh
+++ b/gitstatus.plugin.zsh
@@ -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;;