From 87e76f89bbb48be2e941c112fa34e4ef6709dbd2 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sat, 25 Apr 2015 11:04:07 -0700 Subject: 34961: properly handle the case of finding no files when searching $fpath and $_compdir --- Completion/compaudit | 1 + 1 file changed, 1 insertion(+) (limited to 'Completion') 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]= -- cgit 1.4.1