Skip to content

Commit

Permalink
fix: broken update command
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
  • Loading branch information
vladdoster committed Apr 19, 2023
1 parent db404aa commit 336ca85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/zsdoc/zinit.zsh.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ ____
____

Has 564 line(s). Calls functions:
Has 566 line(s). Calls functions:

zinit
|-- +zinit-message
Expand Down Expand Up @@ -1891,7 +1891,7 @@ ____
____

Has 120 line(s). Doesn't call other functions.
Has 134 line(s). Doesn't call other functions.

Called by:

Expand Down
4 changes: 3 additions & 1 deletion zinit.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 336ca85

Please sign in to comment.