mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-21 19:03:11 +00:00
*highlight: Use mend, don't manually check length of match (for $offset)
This commit is contained in:
parent
fb4c4b7b81
commit
cf97c91dba
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
|
|||
integer offset=0
|
||||
if [[ "$proc_buf" = (#b)(#s)(([[:space:]]|\\[[:space:]])##)* ]]; then
|
||||
# The first, outer parenthesis
|
||||
offset="${#match[1]}"
|
||||
offset="${mend[1]}"
|
||||
fi
|
||||
((start_pos+=offset))
|
||||
((end_pos=$start_pos+${#arg}))
|
||||
|
|
Loading…
Reference in a new issue