Don't shift unless error from before-load hook.

This commit is contained in:
Sebastian Gniazdowski 2020-07-17 08:58:01 +02:00
parent 6362c56c24
commit 0bb31a6c0d

View file

@ -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 )) {