Merge pull request #98 from FranciscoBorges/master
Declare `query_part` as local to avoid warnings due to `WARN_CREATE_GLOBAL`
This commit is contained in:
commit
2c36e4dd3a
1 changed files with 1 additions and 0 deletions
|
|
@ -321,6 +321,7 @@ _history-substring-search-end() {
|
|||
# highlight first matching query parts
|
||||
local highlight_start_index=0
|
||||
local highlight_end_index=0
|
||||
local query_part
|
||||
for query_part in $_history_substring_search_query_parts; do
|
||||
local escaped_query_part=${query_part//(#m)[\][()|\\*?#<>~^]/\\$MATCH}
|
||||
# (i) get index of pattern
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue