Fix use of 256 colors in *highlight styles

This commit is contained in:
Sebastian Gniazdowski 2016-10-22 12:37:41 +02:00
parent 1553fc9fba
commit 6afcbfa345

View file

@ -134,7 +134,7 @@ _hsmw_main() {
for line in "${disp_list[@]}"; do
reply=( )
-hsmw-highlight-process "$line"
region_highlight+=( "${reply[@]//(#b)([[:digit:]]##)/$(( ${match[1]} + pre_index + offset ))}" )
region_highlight+=( "${reply[@]//(#b)([[:digit:]]##) ([[:digit:]]##)/$(( ${match[1]} + pre_index + offset )) $(( ${match[2]} + pre_index + offset ))}" )
pre_index+=${#line}+1
done
fi