Skip to content

Commit 16d818a

Browse files
committed
'main': Don't trip WARN_NESTED_VAR.
Fixes #727.
1 parent f1b9fbb commit 16d818a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

highlighters/main/main-highlighter.zsh

+2
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,8 @@ _zsh_highlight_main_highlighter_expand_path()
16771677
# -------------------------------------------------------------------------------------------------
16781678

16791679
_zsh_highlight_main__precmd_hook() {
1680+
setopt localoptions
1681+
unsetopt warnnestedvar
16801682
_zsh_highlight_main__command_type_cache=()
16811683
}
16821684

0 commit comments

Comments
 (0)