mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
fixup! 'main': Break out a new helper function for readability.
This commit is contained in:
parent
e9ab802593
commit
34f50d7b4f
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ _zsh_highlight_main__type() {
|
||||||
# Return 0 if runnable, 1 if not runnable, 2 if trouble.
|
# Return 0 if runnable, 1 if not runnable, 2 if trouble.
|
||||||
_zsh_highlight_main__is_runnable() {
|
_zsh_highlight_main__is_runnable() {
|
||||||
if _zsh_highlight_main__type "$1"; then
|
if _zsh_highlight_main__type "$1"; then
|
||||||
[[ -n $REPLY ]]
|
[[ $REPLY != none ]]
|
||||||
else
|
else
|
||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue