Skip to content

Commit

Permalink
pull upstream changes from gitstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
romkatv committed Mar 15, 2020
1 parent 95252aa commit d53355c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gitstatus/gitstatus.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,7 @@ function _gitstatus_process_response() {
# -D Unless this option is specified, report zero staged, unstaged and conflicted
# changes for repositories with bash.showDirtyState = false.
function gitstatus_start() {
emulate -L zsh || return
setopt no_aliases no_bg_nice extended_glob typeset_silent monitor || return

emulate -L zsh -o no_aliases -o no_bg_nice -o extended_glob -o typeset_silent || return
print -rnu2 || return

local opt OPTARG
Expand Down Expand Up @@ -465,6 +463,8 @@ function gitstatus_start() {
setopt xtrace
fi

setopt monitor || return

if (( ! _GITSTATUS_STATE_$name )); then
if [[ -r /proc/version && "$(</proc/version)" == *Microsoft* ]]; then
lock_fd=-1
Expand Down

0 comments on commit d53355c

Please sign in to comment.