Skip to content

Commit d59ce0f

Browse files
committed
driver: Be resilient to KSH_ARRAYS being set in the calling scope
1 parent e82e2d0 commit d59ce0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zsh-syntax-highlighting.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ _zsh_highlight()
123123
typeset -r ret
124124

125125
# $region_highlight should be predefined, either by zle or by the test suite's mock (non-special) array.
126-
(( ${+region_highlight} )) || {
126+
(( ${+region_highlight[@]} )) || {
127127
echo >&2 'zsh-syntax-highlighting: error: $region_highlight is not defined'
128128
echo >&2 'zsh-syntax-highlighting: (Check whether zsh-syntax-highlighting was installed according to the instructions.)'
129129
return $ret

0 commit comments

Comments
 (0)