fix(cli): keep completion flag when loading multiple plugins (#14032)

This commit is contained in:
Maksym Tymoshyk
2026-08-30 19:11:30 +02:00
committed by GitHub
parent 44ce832bbd
commit b5d75fc565
+1 -1
View File
@@ -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