mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-29 02:32:11 +01:00
36146: avoid mix of -/ and -g with _files as that just overrides user preferences
This commit is contained in:
parent
5f8a18a561
commit
9a4e1bf93b
3 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2015-08-14 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 36146: Completion/Zsh/Type/_command_names,
|
||||
Completion/Zsh/Command/_zmodload: avoid mix of -/ and -g with
|
||||
_files as that just overrides user preferences
|
||||
|
||||
2015-08-13 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* unposted: Completion/Unix/Command/_subversion: _subversion:
|
||||
|
|
|
@ -68,7 +68,7 @@ else
|
|||
_requested loadedmodules expl 'loaded modules' \
|
||||
compadd -k 'modules[(R)loaded]' && ret=0
|
||||
_requested files expl 'module file' \
|
||||
_files -W module_path -/g '*.(dll|s[ol]|bundle)(:r)' && ret=0
|
||||
_files -W module_path -g '*.(dll|s[ol]|bundle)(:r)' && ret=0
|
||||
_requested aliases expl 'module alias' \
|
||||
compadd "$suf[@]" -k 'modules[(R)alias*]' && ret=0
|
||||
done
|
||||
|
|
|
@ -17,9 +17,7 @@ defs=(
|
|||
)
|
||||
|
||||
[[ -n "$path[(r).]" || $PREFIX = */* ]] &&
|
||||
defs=( "$defs[@]"
|
||||
'executables:executable file or directory:_path_files -/g \*\(-\*\)'
|
||||
)
|
||||
defs+=( 'executables:executable file:_files -g \*\(-\*\)' )
|
||||
|
||||
if [[ "$1" = -e ]]; then
|
||||
shift
|
||||
|
|
Loading…
Reference in a new issue