fixup! 'main': Break out a new helper function for readability.

This commit is contained in:
Daniel Shahaf 2018-01-12 16:01:27 +00:00
parent e9ab802593
commit 34f50d7b4f

View File

@ -169,7 +169,7 @@ _zsh_highlight_main__type() {
# Return 0 if runnable, 1 if not runnable, 2 if trouble.
_zsh_highlight_main__is_runnable() {
if _zsh_highlight_main__type "$1"; then
[[ -n $REPLY ]]
[[ $REPLY != none ]]
else
return 2
fi