Make highlighting case-insensitive

This commit is contained in:
Sebastian Gniazdowski 2016-05-23 12:43:30 +02:00
parent 927496fa72
commit 001f414782

View file

@ -86,7 +86,7 @@ _zhcw_main() {
region_highlight=()
if [ -n "$colsearch_pattern" ]; then
region_highlight+=( "${(f)${(S)text//*(#b)(${~colsearch_pattern})/$(( offset + mbegin[1] - 1 )) $(( offset + mend[1] )) fg=yellow,bold${nl}}%$nl*}" )
region_highlight+=( "${(f)${(S)text//*(#bi)(${~colsearch_pattern})/$(( offset + mbegin[1] - 1 )) $(( offset + mend[1] )) fg=yellow,bold${nl}}%$nl*}" )
fi
}