mirror of
https://github.com/zsh-users/zsh-history-substring-search.git
synced 2026-11-11 11:41:49 -05:00
Declare query_part as local to avoid warnings due to WARN_CREATE_GLOBAL
This commit is contained in:
@@ -321,6 +321,7 @@ _history-substring-search-end() {
|
|||||||
# highlight first matching query parts
|
# highlight first matching query parts
|
||||||
local highlight_start_index=0
|
local highlight_start_index=0
|
||||||
local highlight_end_index=0
|
local highlight_end_index=0
|
||||||
|
local query_part
|
||||||
for query_part in $_history_substring_search_query_parts; do
|
for query_part in $_history_substring_search_query_parts; do
|
||||||
local escaped_query_part=${query_part//(#m)[\][()|\\*?#<>~^]/\\$MATCH}
|
local escaped_query_part=${query_part//(#m)[\][()|\\*?#<>~^]/\\$MATCH}
|
||||||
# (i) get index of pattern
|
# (i) get index of pattern
|
||||||
|
|||||||
Reference in New Issue
Block a user