From 2c7f678ff0dce6c33bb3954ac3e0d025fc504a14 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 2 May 2000 09:10:52 +0000 Subject: always use empty matcher-list style in _complete_help (11053) --- Completion/Commands/_complete_help | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Completion') 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 -- cgit 1.4.1