Skip to content

Commit

Permalink
don't use short loop, fix issue zsh-users#79
Browse files Browse the repository at this point in the history
  • Loading branch information
willghatch committed Feb 15, 2016
1 parent 9557d2d commit e1aefc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zaw.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ function zaw-callback-edit-file() {
setopt local_options extended_glob
local src_dir="${cur_dir}/sources" f
if [[ -d "${src_dir}" ]]; then
for f ("${src_dir}"/^*.zwc) source "${f}"
for f in "${src_dir}"/^*.zwc; do
source "${f}"
done
fi

# dummy function
Expand Down

0 comments on commit e1aefc8

Please sign in to comment.