mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-01-30 09:47:13 +08:00
driver: Be resilient to KSH_ARRAYS being set in the calling scope
This commit is contained in:
parent
e82e2d042d
commit
d59ce0fbd0
@ -123,7 +123,7 @@ _zsh_highlight()
|
|||||||
typeset -r ret
|
typeset -r ret
|
||||||
|
|
||||||
# $region_highlight should be predefined, either by zle or by the test suite's mock (non-special) array.
|
# $region_highlight should be predefined, either by zle or by the test suite's mock (non-special) array.
|
||||||
(( ${+region_highlight} )) || {
|
(( ${+region_highlight[@]} )) || {
|
||||||
echo >&2 'zsh-syntax-highlighting: error: $region_highlight is not defined'
|
echo >&2 'zsh-syntax-highlighting: error: $region_highlight is not defined'
|
||||||
echo >&2 'zsh-syntax-highlighting: (Check whether zsh-syntax-highlighting was installed according to the instructions.)'
|
echo >&2 'zsh-syntax-highlighting: (Check whether zsh-syntax-highlighting was installed according to the instructions.)'
|
||||||
return $ret
|
return $ret
|
||||||
|
Loading…
Reference in New Issue
Block a user