about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-04-25 11:04:07 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2015-04-25 11:04:07 -0700
commit87e76f89bbb48be2e941c112fa34e4ef6709dbd2 (patch)
tree60c8e926993d3fbb2e15f029b5632735044168be /Completion
parent9d0e3bde2a0511f31918e193ce76c427ef673961 (diff)
downloadzsh-87e76f89bbb48be2e941c112fa34e4ef6709dbd2.tar.gz
zsh-87e76f89bbb48be2e941c112fa34e4ef6709dbd2.tar.xz
zsh-87e76f89bbb48be2e941c112fa34e4ef6709dbd2.zip
34961: properly handle the case of finding no files when searching $fpath and $_compdir
Diffstat (limited to 'Completion')
-rw-r--r--Completion/compaudit1
1 files changed, 1 insertions, 0 deletions
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]=