Skip to content

Commit 8d4a409

Browse files
Declare query_part as local to avoid warnings due to WARN_CREATE_GLOBAL
1 parent 47a7d41 commit 8d4a409

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)