Skip to content

Commit 1f1e629

Browse files
committed
regexp: Add missing local for arrays match mbegin mend
See zsh-users#497.
1 parent 0369283 commit 1f1e629

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

highlighters/regexp/regexp-highlighter.zsh

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ _zsh_highlight_regexp_highlighter_loop()
5252
local buf="$1" pat="$2"
5353
integer OFFSET=0
5454
local MATCH; integer MBEGIN MEND
55+
local -a match mbegin mend
5556
while true; do
5657
[[ "$buf" =~ "$pat" ]] || return;
5758
region_highlight+=("$((MBEGIN - 1 + OFFSET)) $((MEND + OFFSET)) $ZSH_HIGHLIGHT_REGEXP[$pat]")

0 commit comments

Comments
 (0)