Trivial code cleanup.
This commit is contained in:
parent
c398b1c56f
commit
61b91cb41b
@ -675,9 +675,8 @@ _filedir()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If the filter failed to produce anything, try without it
|
# If the filter failed to produce anything, try without it
|
||||||
if [[ -n "$1" ]] && [[ "$1" != -d ]] && [[ ${#toks[@]} -lt 1 ]] ; then
|
[[ -n "$1" && "$1" != -d && ${#toks[@]} -lt 1 ]] && \
|
||||||
toks=( ${toks[@]-} $( compgen -f -- $quoted ) )
|
toks=( ${toks[@]-} $( compgen -f -- $quoted ) )
|
||||||
fi
|
|
||||||
|
|
||||||
[ ${#toks[@]} -ne 0 ] && _compopt_o_filenames
|
[ ${#toks[@]} -ne 0 ] && _compopt_o_filenames
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user