mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Quieten non-zero commands reported by err trap.
This commit is contained in:
parent
094329eb14
commit
b267c7b4e7
2 changed files with 7 additions and 4 deletions
|
|
@ -65,8 +65,11 @@ _zsh_highlight()
|
|||
return $ret
|
||||
fi
|
||||
|
||||
setopt localoptions warncreateglobal
|
||||
setopt localoptions noksharrays
|
||||
# Did a couple of tweaks to highlighters/main/main-highlighter.zsh
|
||||
# to prevent need for following, thut there'll surely be others.
|
||||
# setopt localtraps
|
||||
# unfunction TRAPZERR
|
||||
setopt localoptions noksharrays warncreateglobal
|
||||
local REPLY # don't leak $REPLY into global scope
|
||||
|
||||
# Do not highlight if there are more than 300 chars in the buffer. It's most
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue