Merge pull request #508 from zdharma-continuum/fix/update-subcommand

fix: broken update command
This commit is contained in:
vladislav doster 2023-04-19 12:24:31 -05:00 committed by GitHub
commit 6d84f9991d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -1578,7 +1578,7 @@ ____
____
Has 564 line(s). Calls functions:
Has 566 line(s). Calls functions:
zinit
|-- +zinit-message
@ -1891,7 +1891,7 @@ ____
____
Has 120 line(s). Doesn't call other functions.
Has 134 line(s). Doesn't call other functions.
Called by:

View file

@ -2946,7 +2946,9 @@ You can try to prepend {apo}${___q}{lhi}@{apo}'{error} to the ID if the last ice
.zinit-list-bindkeys
;;
(update)
(( ${+ICE[if]} )) && { eval "${ICE[if]}" } || return 1
if (( ${+ICE[if]} )) {
eval "${ICE[if]}" || return 1;
}
for REPLY ( ${(s.;.)ICE[has]} ) {
(( ${+commands[$REPLY]} )) || return 1
}