We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06710f3 commit e65ebf0Copy full SHA for e65ebf0
highlighters/main/main-highlighter.zsh
@@ -1689,8 +1689,13 @@ _zsh_highlight_main_highlighter_expand_path()
1689
# -------------------------------------------------------------------------------------------------
1690
1691
_zsh_highlight_main__precmd_hook() {
1692
+ # Unset the WARN_NESTED_VAR option, taking care not to error if the option
1693
+ # doesn't exist (zsh older than zsh-5.3.1-test-2).
1694
setopt localoptions
- unsetopt warnnestedvar
1695
+ if [[ -o warnnestedvar ]] 2>/dev/null; then
1696
+ unsetopt warnnestedvar
1697
+ fi
1698
+
1699
_zsh_highlight_main__command_type_cache=()
1700
}
1701
0 commit comments