Fix breakage with setopt ERR_RETURN (Issue #60)
This commit is contained in:
parent
2b6451de03
commit
07011f632b
1 changed files with 7 additions and 7 deletions
|
|
@ -52,10 +52,10 @@ typeset -g _history_substring_search_query_highlight
|
||||||
typeset -g _history_substring_search_result
|
typeset -g _history_substring_search_result
|
||||||
typeset -g _history_substring_search_query
|
typeset -g _history_substring_search_query
|
||||||
typeset -g -A _history_substring_search_raw_matches
|
typeset -g -A _history_substring_search_raw_matches
|
||||||
typeset -g _history_substring_search_raw_match_index
|
typeset -g -i _history_substring_search_raw_match_index
|
||||||
typeset -g -A _history_substring_search_matches
|
typeset -g -A _history_substring_search_matches
|
||||||
typeset -g -A _history_substring_search_unique_filter
|
typeset -g -A _history_substring_search_unique_filter
|
||||||
typeset -g _history_substring_search_match_index
|
typeset -g -i _history_substring_search_match_index
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# configuration variables
|
# configuration variables
|
||||||
|
|
@ -447,7 +447,7 @@ _history_substring_search_process_raw_matches() {
|
||||||
#
|
#
|
||||||
# Move on to the next raw entry and get its history index.
|
# Move on to the next raw entry and get its history index.
|
||||||
#
|
#
|
||||||
(( _history_substring_search_raw_match_index++ ))
|
_history_substring_search_raw_match_index+=1
|
||||||
local index=${_history_substring_search_raw_matches[$_history_substring_search_raw_match_index]}
|
local index=${_history_substring_search_raw_matches[$_history_substring_search_raw_match_index]}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
@ -627,7 +627,7 @@ _history-substring-search-up-search() {
|
||||||
# 1. Move index to point to the next match.
|
# 1. Move index to point to the next match.
|
||||||
# 2. Update display to indicate search found.
|
# 2. Update display to indicate search found.
|
||||||
#
|
#
|
||||||
(( _history_substring_search_match_index++ ))
|
_history_substring_search_match_index+=1
|
||||||
_history-substring-search-found
|
_history-substring-search-found
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
@ -638,7 +638,7 @@ _history-substring-search-up-search() {
|
||||||
# _history_substring_search_matches.
|
# _history_substring_search_matches.
|
||||||
# 2. Update display to indicate search not found.
|
# 2. Update display to indicate search not found.
|
||||||
#
|
#
|
||||||
(( _history_substring_search_match_index++ ))
|
_history_substring_search_match_index+=1
|
||||||
_history-substring-search-not-found
|
_history-substring-search-not-found
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -707,7 +707,7 @@ _history-substring-search-down-search() {
|
||||||
# 1. Move index to point to the previous match.
|
# 1. Move index to point to the previous match.
|
||||||
# 2. Update display to indicate search found.
|
# 2. Update display to indicate search found.
|
||||||
#
|
#
|
||||||
(( _history_substring_search_match_index-- ))
|
_history_substring_search_match_index+=-1
|
||||||
_history-substring-search-found
|
_history-substring-search-found
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
@ -718,7 +718,7 @@ _history-substring-search-down-search() {
|
||||||
# _history_substring_search_matches.
|
# _history_substring_search_matches.
|
||||||
# 2. Update display to indicate search not found.
|
# 2. Update display to indicate search not found.
|
||||||
#
|
#
|
||||||
(( _history_substring_search_match_index-- ))
|
_history_substring_search_match_index+=-1
|
||||||
_history-substring-search-not-found
|
_history-substring-search-not-found
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue