diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Completion/compaudit | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 8daba04c6..c0787674b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 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: Src/Modules/datetime.c: $TZ is implicitly local in diff --git a/Completion/compaudit b/Completion/compaudit index 00125e4db..fb0463ca5 100644 --- a/Completion/compaudit +++ b/Completion/compaudit @@ -71,6 +71,7 @@ if [[ -n $_compdir ]]; then _i_addfiles=(${_compdir}/*(/^M)) fi for _i_line in {1..$#_i_addfiles}; do + (( $_i_line )) || break _i_file=${_i_addfiles[$_i_line]} [[ -d $_i_file && -z ${fpath[(r)$_i_file]} ]] || _i_addfiles[$_i_line]= |