Skip to content

Commit

Permalink
Merge pull request #98 from FranciscoBorges/master
Browse files Browse the repository at this point in the history
Declare `query_part` as local to avoid warnings due to `WARN_CREATE_GLOBAL`
  • Loading branch information
sunaku authored May 13, 2019
2 parents 79d3619 + 8d4a409 commit 2c36e4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zsh-history-substring-search.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c36e4d

Please sign in to comment.