mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-21 00:01:26 +01:00
29444: when _path_files is called with a pattern to match directories, do
not descend into subdirectories for fake-files unless some are defined
This commit is contained in:
parent
c0d2cb5d02
commit
7598220496
2 changed files with 9 additions and 2 deletions
|
@ -3,6 +3,13 @@
|
|||
* unposted: Functions/Zle/move-line-in-buffer: clean
|
||||
the funny characters out of move-line-in-buffer.
|
||||
|
||||
2011-06-04 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 29444: Completion/Unix/Type/_path_files: when called with a
|
||||
pattern to match directories, as from _files with list-dirs-first,
|
||||
do not descend into subdirectories looking for fake files unless
|
||||
some fake files have been defined.
|
||||
|
||||
2011-06-04 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* Completion/Zsh/Context/_brace_parameter, Src/Zle/compcore.c
|
||||
|
@ -14963,5 +14970,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.5363 $
|
||||
* $Revision: 1.5364 $
|
||||
*****************************************************
|
||||
|
|
|
@ -438,7 +438,7 @@ for prepath in "$prepaths[@]"; do
|
|||
|
||||
tmp2=( "$tmp1[@]" )
|
||||
|
||||
if [[ "$tpre$tsuf" = */* ]]; then
|
||||
if [[ "$tpre$tsuf" = (#b)*/(*) && -n "$fake${match[1]}" ]]; then
|
||||
compfiles -P$cfopt tmp1 accex "$skipped" "$_matcher $matcher[2]" "$sdirs" fake
|
||||
elif [[ "$sopt" = *[/f]* ]]; then
|
||||
compfiles -p$cfopt tmp1 accex "$skipped" "$_matcher $matcher[2]" "$sdirs" fake "$pats[@]"
|
||||
|
|
Loading…
Reference in a new issue