mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-20 05:53:52 +01:00
12650: don't show aliased modules if there aren't any
This commit is contained in:
parent
934dd1c694
commit
7ffa89ea7d
@ -1,3 +1,8 @@
|
|||||||
|
2000-08-15 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
|
* 12650: Completion/Builtins/_zmodload: don't lists aliases if
|
||||||
|
there aren't any.
|
||||||
|
|
||||||
2000-08-15 Bart Schaefer <schaefer@zsh.org>
|
2000-08-15 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
* 12652: Src/module.c: Fix variable scoping problem that caused
|
* 12652: Src/module.c: Fix variable scoping problem that caused
|
||||||
|
@ -11,8 +11,11 @@ else
|
|||||||
while _tags; do
|
while _tags; do
|
||||||
_requested files expl 'module file' \
|
_requested files expl 'module file' \
|
||||||
_files -W module_path -/g '*.(dll|s[ol])(:r)' && ret=0
|
_files -W module_path -/g '*.(dll|s[ol])(:r)' && ret=0
|
||||||
_requested aliases expl 'module alias' \
|
if _requested aliases expl 'module alias'; then
|
||||||
compadd -- ${${(f)"$(zmodload -A)"}%% *} && ret=0
|
local array
|
||||||
|
array=(${${(f)"$(zmodload -A)"}%% *})
|
||||||
|
(( $#array )) && compadd "${expl[@]}" -- $array && ret=0
|
||||||
|
fi
|
||||||
(( ret )) || break
|
(( ret )) || break
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user