File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ _history-substring-search-end() {
324324 for query_part in $_history_substring_search_query_parts ; do
325325 local escaped_query_part=${query_part// (# m)[\][()|\\*?#<>~^]/ \\ $MATCH }
326326 # (i) get index of pattern
327- local query_part_match_index=${${BUFFER: $highlight_start_index } [(i)(#$HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS)${escaped_query_part}]}
327+ local query_part_match_index=" ${${BUFFER: $highlight_start_index } [(i)(#$HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS)${escaped_query_part}]} "
328328 if [[ $query_part_match_index -le ${# BUFFER: $highlight_start_index } ]]; then
329329 highlight_start_index=$(( $highlight_start_index + $query_part_match_index ))
330330 highlight_end_index=$(( $highlight_start_index + ${# query_part} ))
You can’t perform that action at this time.
0 commit comments