We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0369283 commit 1f1e629Copy full SHA for 1f1e629
highlighters/regexp/regexp-highlighter.zsh
@@ -52,6 +52,7 @@ _zsh_highlight_regexp_highlighter_loop()
52
local buf="$1" pat="$2"
53
integer OFFSET=0
54
local MATCH; integer MBEGIN MEND
55
+ local -a match mbegin mend
56
while true; do
57
[[ "$buf" =~ "$pat" ]] || return;
58
region_highlight+=("$((MBEGIN - 1 + OFFSET)) $((MEND + OFFSET)) $ZSH_HIGHLIGHT_REGEXP[$pat]")
0 commit comments