From adf79659510ed08c78bb4ccb881a5c03ef2e6759 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 11 Oct 2000 12:19:23 +0000 Subject: add _all_matcher completer and supporting C-code for adding a special match representing all other matches; remove completions style from _expand(|_word) (12960) --- Completion/Commands/_expand_word | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'Completion/Commands/_expand_word') diff --git a/Completion/Commands/_expand_word b/Completion/Commands/_expand_word index 3ec3cc756..895695676 100644 --- a/Completion/Commands/_expand_word +++ b/Completion/Commands/_expand_word @@ -6,7 +6,6 @@ setopt localoptions nullglob rcexpandparam extendedglob unset unsetopt markdirs globsubst shwordsplit shglob ksharrays cshnullglob local curcontext="$curcontext" -local -ah completers if [[ -z "$curcontext" ]]; then curcontext="expand-word:::" @@ -14,12 +13,4 @@ else curcontext="expand-word:${curcontext#*:}" fi -if zstyle -t ":completion:${curcontext}:" completions; then - zstyle -a ":completion:${curcontext}:" completer completers - completers[1,(i)_expand]=_expand - (( $#completers == 1 )) && completers=(_expand _complete) -else - completers=(_expand) -fi - -_main_complete $completers +_main_complete _expand -- cgit 1.4.1