Trivial code cleanup.

This commit is contained in:
Ville Skyttä 2011-03-29 23:29:51 +03:00
parent c398b1c56f
commit 61b91cb41b

View File

@ -675,9 +675,8 @@ _filedir()
fi
# If the filter failed to produce anything, try without it
if [[ -n "$1" ]] && [[ "$1" != -d ]] && [[ ${#toks[@]} -lt 1 ]] ; then
toks=( ${toks[@]-} $( compgen -f -- $quoted) )
fi
[[ -n "$1" && "$1" != -d && ${#toks[@]} -lt 1 ]] && \
toks=( ${toks[@]-} $( compgen -f -- $quoted ) )
[ ${#toks[@]} -ne 0 ] && _compopt_o_filenames