mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
more ERR trap fixes
This commit is contained in:
parent
4d0c5604d9
commit
0bac9581bb
2 changed files with 9 additions and 4 deletions
|
|
@ -66,7 +66,7 @@ _zsh_highlight()
|
|||
fi
|
||||
|
||||
# Did a couple of tweaks to highlighters/main/main-highlighter.zsh
|
||||
# to prevent need for following, though there'll surely be others.
|
||||
# to prevent need for following, though there'll surely be other areas.
|
||||
# setopt localtraps
|
||||
# unfunction TRAPZERR
|
||||
setopt localoptions noksharrays warncreateglobal
|
||||
|
|
@ -172,6 +172,9 @@ _zsh_highlight_apply_zle_highlight() {
|
|||
local entry="$1" default="$2"
|
||||
integer first="$3" second="$4"
|
||||
|
||||
setopt localoptions unset # seems to be the accessing the array entry
|
||||
# rather than ${entry-} that aborts otherwise
|
||||
|
||||
# read the relevant entry from zle_highlight
|
||||
local region="${zle_highlight[(r)${entry}:*]}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue