Skip to content

Commit

Permalink
Fix sorin-ionescu#56: tolerance to WARN_GLOBAL option
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoulaj committed Jun 12, 2011
1 parent 55e6a85 commit bb7fcb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zsh-syntax-highlighting.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ typeset -ga ZSH_HIGHLIGHT_HIGHLIGHTERS
# This function is supposed to be called whenever the ZLE state changes.
_zsh_highlight()
{
setopt localoptions nowarncreateglobal

# Store the previous command return code to restore it whatever happens.
local ret=$?

Expand Down

0 comments on commit bb7fcb7

Please sign in to comment.