From f7a52cda469fd0a1b7198342fc052ef64ab70e8f Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 5 Apr 2000 10:50:08 +0000 Subject: two small completion fixes --- Completion/Core/_files | 2 +- Completion/Core/_main_complete | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion') diff --git a/Completion/Core/_files b/Completion/Core/_files index f16da0b50..0c0231cb4 100644 --- a/Completion/Core/_files +++ b/Completion/Core/_files @@ -6,7 +6,7 @@ zparseopts -a opts \ '/=tmp' 'f=tmp' 'g+:-=tmp' q n 1 2 P: S: r: R: W: X+: M+: F: J+: V+: type="${(@j::M)${(@)tmp#-}#?}" -(( $tmp[(I)-g*] )) && glob="${(j: :)${(M)tmp:#-g*}#-g}" +(( $tmp[(I)-g*] )) && glob="${(j: :)${(@M)tmp:#-g*}#-g}" ign=$opts[(I)-F] if (( ign )); then ign=( $=opts[ign+1] ) diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete index 890638d60..2a1477e04 100644 --- a/Completion/Core/_main_complete +++ b/Completion/Core/_main_complete @@ -140,7 +140,7 @@ if [[ $compstate[old_list] = keep || $compstate[nmatches] -gt 1 ]]; then else sel=( "${(@M)_menu_style:#select*}" ) - if (( $# )); then + if (( $#sel )); then local min=9999999 i num for i in "$sel[@]"; do -- cgit 1.4.1