mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
Don't shift unless error from before-load hook.
This commit is contained in:
parent
6362c56c24
commit
0bb31a6c0d
|
|
@ -2235,7 +2235,7 @@ env-whitelist|bindkeys|module|add-fpath|fpath|run${reply:+|${(~j:|:)"${reply[@]#
|
|||
if (( ___retval2 )) {
|
||||
# An error is actually only an odd return code
|
||||
___retval+=$(( ___retval2 & 1 ? ___retval2 : 0 ))
|
||||
(( $# )) && shift
|
||||
(( ___retval2 & 1 && $# )) && shift
|
||||
|
||||
# Override $@?
|
||||
if (( ___retval2 & 2 )) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue