From 753cc6b22adb659e9c6bdcf854d99bfe4b731d26 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 2 May 2000 08:23:31 +0000 Subject: completion cleanup, mostly _wanted and $expl (11049) --- Completion/Base/_arguments | 11 ++++++----- Completion/Base/_first | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'Completion/Base') diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index b1e790e1c..38002ccf6 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -298,14 +298,15 @@ if (( $# )) && comparguments "$multi[@]" "$autod" "$@"; then if comparguments -s single; then - _description options expl option - if [[ "$single" = direct ]]; then - compadd "$expl[@]" -QS '' - "${PREFIX}${SUFFIX}" + _all_labels options expl option \ + compadd -QS '' - "${PREFIX}${SUFFIX}" elif [[ "$single" = next ]]; then - compadd "$expl[@]" -Q - "${PREFIX}${SUFFIX}" + _all_labels options expl option \ + compadd -Q - "${PREFIX}${SUFFIX}" elif [[ "$single" = equal ]]; then - compadd "$expl[@]" -QqS= - "${PREFIX}${SUFFIX}" + _all_labels options expl option \ + compadd -QqS= - "${PREFIX}${SUFFIX}" else tmp1=( "$next[@]" "$direct[@]" "$odirect[@]" "$equal[@]" ) tmp3=( "${(M@)tmp1:#[-+]?[^:]*}" ) diff --git a/Completion/Base/_first b/Completion/Base/_first index 4f10cbb8f..4b565fca4 100644 --- a/Completion/Base/_first +++ b/Completion/Base/_first @@ -33,7 +33,7 @@ # opt=-V # fi # if _wanted "$opt" history-words expl "history ($n)" \ -# compadd "$expl[@]" -Q - \ +# compadd -Q - \ # "${(@)${(@)historywords:#[\$'\"]*}[1,i*10]}"; then # # We have found at least one matching word, so we switch # # on menu-completion and make sure that no other -- cgit 1.4.1