From 15818346bf496c7e5f8cb21b2f273c47d386b7db Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Mon, 20 Jul 2020 15:06:02 +0200 Subject: [PATCH] Squashed 'gitstatus/' changes from 7546f4de..b157d02a b157d02a treat exit code 159 (SIGSYS) from gistatusd as terminal git-subtree-dir: gitstatus git-subtree-split: b157d02a9a89892f228064e06b5a817a24eea9ed --- gitstatus.plugin.sh | 2 +- gitstatus.plugin.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gitstatus.plugin.sh b/gitstatus.plugin.sh index 2fe322ef..9f5b9a6e 100644 --- a/gitstatus.plugin.sh +++ b/gitstatus.plugin.sh @@ -165,7 +165,7 @@ function gitstatus_start() { local ret=$? trap - ${sig[@]} case "$ret" in - 0|129|130|131|137|141|143) + 0|129|130|131|137|141|143|159) echo -nE $'bye\x1f0\x1e' >&"$fd_out" exit "$ret" ;; diff --git a/gitstatus.plugin.zsh b/gitstatus.plugin.zsh index 55301ab1..a93f2c36 100644 --- a/gitstatus.plugin.zsh +++ b/gitstatus.plugin.zsh @@ -424,7 +424,7 @@ function _gitstatus_daemon"${1:-}"() { if [[ -x $_gitstatus_zsh_daemon ]]; then HOME=$home $_gitstatus_zsh_daemon -G $_gitstatus_zsh_version "${(@)args}" >&$pipe_fd local -i ret=$? - [[ $ret == (0|129|130|131|137|141|143) ]] && return ret + [[ $ret == (0|129|130|131|137|141|143|159) ]] && return ret fi (( ! _gitstatus_zsh_downloaded )) || return