From 6afcbfa345000df2c6feb90600214ecad6f3106d Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Sat, 22 Oct 2016 12:37:41 +0200 Subject: [PATCH] Fix use of 256 colors in *highlight styles --- history-search-multi-word | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/history-search-multi-word b/history-search-multi-word index de0ced8..92a1e6a 100644 --- a/history-search-multi-word +++ b/history-search-multi-word @@ -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