From fdaeec45146b5fe6b2c2b01da6f97681d89f8094 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 8 Sep 2016 19:09:29 +0000 Subject: [PATCH] 'main': Followup to 51614ca2c994: Run cheaper conditions first. This was suggested on #355. --- highlighters/main/main-highlighter.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh index f6194cf..6df671e 100644 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -119,7 +119,7 @@ _zsh_highlight_main__type() { # falling through to the $() below, incurring a fork. (Issue #354.) # # The second disjunct mimics the isrelative() C call from the zsh bug. - elif { is-at-least 5.3 || [[ $1 != */* ]] } && + elif { [[ $1 != */* ]] || is-at-least 5.3 } && ! builtin type -w -- $1 >/dev/null 2>&1; then REPLY=none fi