aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-10-03 15:51:01 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-10-03 15:51:01 +0300
commitaa79dad7e30fff087ef5b87b58c650a0769a5192 (patch)
tree1dc33a097b2b01e8ed4af32cd8922e40cd4715fe
parentaa606e6cb0cb6ae852cca343fbffe72ed8015a1c (diff)
pull upstream changes from gitstatus
-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'