diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-05 10:50:08 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-05 10:50:08 +0000 |
commit | f7a52cda469fd0a1b7198342fc052ef64ab70e8f (patch) | |
tree | cf36f8218922439ae64948f8e8f48a97de6105b6 | |
parent | 5de3404e7c48edae1fa6b2ffc03bc8ed20d32be3 (diff) | |
download | zsh-f7a52cda469fd0a1b7198342fc052ef64ab70e8f.tar.gz zsh-f7a52cda469fd0a1b7198342fc052ef64ab70e8f.tar.xz zsh-f7a52cda469fd0a1b7198342fc052ef64ab70e8f.zip |
two small completion fixes
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Completion/Core/_files | 2 | ||||
-rw-r--r-- | Completion/Core/_main_complete | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 88c21fe68..7ee52d5ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,9 @@ 2000-04-05 Sven Wischnowsky <wischnow@informatik.hu-berlin.de> + * 10507: Completion/Core/_files, Completion/Core/_main_complete: + two small fixes (-g in _files and menu style) + * 10502: Src/parse.c: use magic number in zwc files as zwc-version, report zsh-version in error message. 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 |