Skip to content

Commit 2c36e4d

Browse files
authored
Merge pull request #98 from FranciscoBorges/master
Declare `query_part` as local to avoid warnings due to `WARN_CREATE_GLOBAL`
2 parents 79d3619 + 8d4a409 commit 2c36e4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zsh-history-substring-search.zsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ _history-substring-search-end() {
321321
# highlight first matching query parts
322322
local highlight_start_index=0
323323
local highlight_end_index=0
324+
local query_part
324325
for query_part in $_history_substring_search_query_parts; do
325326
local escaped_query_part=${query_part//(#m)[\][()|\\*?#<>~^]/\\$MATCH}
326327
# (i) get index of pattern

0 commit comments

Comments
 (0)