From 79596a84be8bdcbea099f7a7f93fadcd35325c5f Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sat, 16 Mar 2019 07:45:23 +0000 Subject: [PATCH] 'main': Document the last change. --- highlighters/main/main-highlighter.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh index 477b309..71bec9d 100644 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -180,6 +180,8 @@ _zsh_highlight_main__type() { # # The first disjunct mimics the isrelative() C call from the zsh bug. elif { [[ $1 != */* ]] || is-at-least 5.3 } && + # Add a subshell to avoid a zsh upstream bug. + # ### Remove the subshell when we stop supporting zsh 5.7.1 (I assume 5.8 will have the bugfix). ! (builtin type -w -- $1) >/dev/null 2>&1; then REPLY=none fi