summaryrefslogtreecommitdiff
path: root/Completion/Commands/_complete_help
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Commands/_complete_help')
-rw-r--r--Completion/Commands/_complete_help9
1 files changed, 8 insertions, 1 deletions
diff --git a/Completion/Commands/_complete_help b/Completion/Commands/_complete_help
index 61d095047..6733111ff 100644
--- a/Completion/Commands/_complete_help
+++ b/Completion/Commands/_complete_help
@@ -27,7 +27,14 @@ _complete_help() {
esac
help_styles[${2}${_f}]="${help_styles[${2}${_f}]},${_t} ${3}:${_f}"
fi
- builtin zstyle "$@"
+
+ # No need to call the completers more than once with different match specs.
+
+ if [[ "$3" = matcher-list ]]; then
+ eval "${4}=( '' )"
+ else
+ builtin zstyle "$@"
+ fi
}
_main_complete