mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-01-30 09:47:13 +08:00
Fix #56: tolerance to WARN_GLOBAL option
This commit is contained in:
parent
55e6a85fbb
commit
bb7fcb79fa
@ -42,6 +42,8 @@ typeset -ga ZSH_HIGHLIGHT_HIGHLIGHTERS
|
|||||||
# This function is supposed to be called whenever the ZLE state changes.
|
# This function is supposed to be called whenever the ZLE state changes.
|
||||||
_zsh_highlight()
|
_zsh_highlight()
|
||||||
{
|
{
|
||||||
|
setopt localoptions nowarncreateglobal
|
||||||
|
|
||||||
# Store the previous command return code to restore it whatever happens.
|
# Store the previous command return code to restore it whatever happens.
|
||||||
local ret=$?
|
local ret=$?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user