zsh-workers
 help / color / mirror / code / Atom feed
* _file in _zmodload: why option -/ ?
@ 2013-10-26  9:25 Jun T.
  2013-10-26 21:37 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Jun T. @ 2013-10-26  9:25 UTC (permalink / raw)
  To: zsh-workers

In Completion/Zsh/Command/_zmodload, line 65,

      _files -W module_path -/g '*.(dll|s[ol]|bundle)(:r)' && ret=0

Why the option -/ is necessary here?
I guess just -g 'pattern' is enough.

I noticed this because 'gmodload <TAB>' completes only directory and no
module files if I use the following style (by Bart Schaefer, see 31638),

zstyle -e ':completion::*' file-patterns \
	'[[ $funcstack[1] = _files && $type = */* ]] && reply=("*(/)")'


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-27 22:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-26  9:25 _file in _zmodload: why option -/ ? Jun T.
2013-10-26 21:37 ` Bart Schaefer
2013-10-27 16:10   ` Jun T.
2013-10-27 22:54     ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).