mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-24 20:33:04 +00:00
Make highlighting case-insensitive
This commit is contained in:
parent
927496fa72
commit
001f414782
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue