From b5d75fc565cea637768f8954cf7692f29181d0ca Mon Sep 17 00:00:00 2001 From: Maksym Tymoshyk Date: Sun, 30 Aug 2026 20:11:30 +0300 Subject: [PATCH] fix(cli): keep completion flag when loading multiple plugins (#14032) --- lib/cli.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli.zsh b/lib/cli.zsh index a9f0a0767..a86434411 100644 --- a/lib/cli.zsh +++ b/lib/cli.zsh @@ -519,7 +519,7 @@ function _omz::plugin::load { # Check if it has completion to reload compinit local -a comp_files comp_files=($base/_*(N)) - has_completion=$(( $#comp_files > 0 )) + (( has_completion )) || has_completion=$(( $#comp_files > 0 )) # Load the plugin if [[ -f "$base/$plugin.plugin.zsh" ]]; then