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:
Suraj N. Kurapati 2019-05-12 17:18:38 -07:00 committed by GitHub
commit 2c36e4dd3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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