From 16d818a21f886ec61a9bdafd1722920863c65b1b Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Mon, 4 May 2020 13:27:33 +0000 Subject: [PATCH] 'main': Don't trip WARN_NESTED_VAR. Fixes #727. --- 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 7ebc971..4010648 100644 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -1677,6 +1677,8 @@ _zsh_highlight_main_highlighter_expand_path() # ------------------------------------------------------------------------------------------------- _zsh_highlight_main__precmd_hook() { + setopt localoptions + unsetopt warnnestedvar _zsh_highlight_main__command_type_cache=() }