From e0fc4bb58a5e0ce2258370bd695e8dabbfbc530d Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 19 Aug 2017 14:50:20 +0200 Subject: [PATCH] Better fix for return value of _autoenv_source Follow up to 8763a5b. --- autoenv.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoenv.zsh b/autoenv.zsh index c6ecbfe..47d9e13 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -299,7 +299,7 @@ _autoenv_source() { # Source the env file. _autoenv_debug "== SOURCE: ${bold_color:-}$autoenv_env_file${reset_color:-}\n PWD: $PWD" - : $(( _autoenv_debug_indent++ )) + (( ++_autoenv_debug_indent )) local restore_xtrace if [[ $AUTOENV_DEBUG -gt 2 && ! -o xtrace ]]; then @@ -310,7 +310,7 @@ _autoenv_source() { if (( restore_xtrace )); then setopt noxtrace fi - : $(( _autoenv_debug_indent-- )) + (( --_autoenv_debug_indent )) _autoenv_debug "== END SOURCE ==" if [[ $autoenv_event == enter ]]; then @@ -440,7 +440,7 @@ _autoenv_chpwd_handler() { _autoenv_debug "Sourcing from chpwd handler: $env_file" _autoenv_source $env_file enter - : $(( _autoenv_debug_indent++ )) + (( ++_autoenv_debug_indent )) } # }}} -- 2.44.0