mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
34961: properly handle the case of finding no files when searching $fpath and $_compdir
This commit is contained in:
parent
9d0e3bde2a
commit
87e76f89bb
2 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
2015-04-25 Barton E. Schaefer <schaefer@zsh.org>
|
2015-04-25 Barton E. Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* 34961: Completion/compaudit: properly handle the case of finding
|
||||||
|
no files when searching $fpath and $_compdir
|
||||||
|
|
||||||
* 34961: Doc/Zsh/compsys.yo: minor wording clarification
|
* 34961: Doc/Zsh/compsys.yo: minor wording clarification
|
||||||
|
|
||||||
* 34961: Src/Modules/datetime.c: $TZ is implicitly local in
|
* 34961: Src/Modules/datetime.c: $TZ is implicitly local in
|
||||||
|
|
|
@ -71,6 +71,7 @@ if [[ -n $_compdir ]]; then
|
||||||
_i_addfiles=(${_compdir}/*(/^M))
|
_i_addfiles=(${_compdir}/*(/^M))
|
||||||
fi
|
fi
|
||||||
for _i_line in {1..$#_i_addfiles}; do
|
for _i_line in {1..$#_i_addfiles}; do
|
||||||
|
(( $_i_line )) || break
|
||||||
_i_file=${_i_addfiles[$_i_line]}
|
_i_file=${_i_addfiles[$_i_line]}
|
||||||
[[ -d $_i_file && -z ${fpath[(r)$_i_file]} ]] ||
|
[[ -d $_i_file && -z ${fpath[(r)$_i_file]} ]] ||
|
||||||
_i_addfiles[$_i_line]=
|
_i_addfiles[$_i_line]=
|
||||||
|
|
Loading…
Reference in a new issue