From 336ca85ade5d4c5c99bd903610baf9961753192b Mon Sep 17 00:00:00 2001 From: Vladislav Doster Date: Wed, 19 Apr 2023 17:06:04 +0000 Subject: [PATCH] fix: broken update command Signed-off-by: Vladislav Doster --- doc/zsdoc/zinit.zsh.adoc | 4 ++-- zinit.zsh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/zsdoc/zinit.zsh.adoc b/doc/zsdoc/zinit.zsh.adoc index e2b07287..7d12c717 100644 --- a/doc/zsdoc/zinit.zsh.adoc +++ b/doc/zsdoc/zinit.zsh.adoc @@ -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: diff --git a/zinit.zsh b/zinit.zsh index e0d39e4b..307f5770 100644 --- a/zinit.zsh +++ b/zinit.zsh @@ -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 }