two small completion fixes

This commit is contained in:
Sven Wischnowsky 2000-04-05 10:50:08 +00:00
parent 5de3404e7c
commit f7a52cda46
3 changed files with 5 additions and 2 deletions

View file

@ -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.

View file

@ -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] )

View file

@ -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