Skip to content

Commit f284041

Browse files
committed
'main': Check cheaper conditions first.
1 parent 1d76c0b commit f284041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

highlighters/main/main-highlighter.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ _zsh_highlight_main__type() {
180180
if (( $+aliases[(e)$1] )); then
181181
may_cache=0
182182
fi
183-
if (( ${+galiases[(e)$1]} )) && (( aliases_allowed )); then
183+
if (( aliases_allowed )) && (( ${+galiases[(e)$1]} )); then
184184
REPLY='global alias'
185-
elif (( $+aliases[(e)$1] )) && (( aliases_allowed )); then
185+
elif (( aliases_allowed )) && (( $+aliases[(e)$1] )) &&; then
186186
REPLY=alias
187187
elif [[ $1 == *.* && -n ${1%.*} ]] && (( $+saliases[(e)${1##*.}] )); then
188188
REPLY='suffix alias'

0 commit comments

Comments
 (0)