Update zinit.zsh

Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
This commit is contained in:
Aaron Lichtman 2021-12-06 06:32:22 -06:00 committed by GitHub
parent c1850630df
commit 55596cd39c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1976,7 +1976,7 @@ builtin setopt noaliases
fi
local append influx in_prepend
if [[ $2 == (b|u|it|st|nb|nu|nit|nst) ]]; then
# Code repetition to protect any extreme whitespace
# Code repetition to preserve any leading/trailing whitespace
# and to allow accumulation of this code with others.
append=$ZINIT[col-$2]
elif [[ $2 == (|ndsh|mdsh|mmdsh|-…|lr|) || -z $2 || -z $ZINIT[col-$2] ]]; then