aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gitstatus/gitstatus.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitstatus/gitstatus.plugin.zsh b/gitstatus/gitstatus.plugin.zsh
index 4b0ee043..9473d2f5 100644
--- a/gitstatus/gitstatus.plugin.zsh
+++ b/gitstatus/gitstatus.plugin.zsh
@@ -528,5 +528,5 @@ function gitstatus_check() {
[[ -n ${(P)${:-GITSTATUS_DAEMON_PID_${1}}} ]]
}
-setopt ${_gitstatus_opts[@]}
+(( ${#_gitstatus_opts} )) && setopt ${_gitstatus_opts[@]}
'builtin' 'unset' '_gitstatus_opts'