diff --git a/bash_completionsV2.go b/bash_completionsV2.go index 767bf031..351391af 100644 --- a/bash_completionsV2.go +++ b/bash_completionsV2.go @@ -150,7 +150,7 @@ __%[1]s_process_completion_results() { __%[1]s_handle_special_char "$cur" = # Print the activeHelp statements before we finish - if [ ${#activeHelp} -ne 0 ]; then + if [ ${#activeHelp[*]} -ne 0 ]; then printf "\n"; printf "%%s\n" "${activeHelp[@]}" printf "\n"