*highlight: Utilize arithmetic context

This commit is contained in:
Sebastian Gniazdowski 2016-10-17 14:12:14 +02:00
parent 1c6493100b
commit c8496ca35d

View file

@ -312,7 +312,7 @@ typeset -gA HSMW_HIGHLIGHT_STYLES
offset="${mend[1]}"
fi
((start_pos+=offset))
((end_pos=$start_pos+${#arg}))
((end_pos=start_pos+${#arg}))
fi
proc_buf="${proc_buf[offset + $#arg + 1,len]}"