mirror of
https://github.com/zsh-users/zsh
synced 2024-09-30 05:06:09 +00:00
two small completion fixes
This commit is contained in:
parent
5de3404e7c
commit
f7a52cda46
|
@ -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.
|
||||
|
||||
|
|
|
@ -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] )
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue