mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-22 03:13:09 +00:00
*ctx*: Reset index when moving previous/next
This commit is contained in:
parent
6a0bc43f7f
commit
a215847fae
1 changed files with 2 additions and 0 deletions
|
@ -6,12 +6,14 @@
|
|||
_hsmw_ctx_up() {
|
||||
(( __hsmw_ctx_which -- ))
|
||||
(( __hsmw_ctx_which < 0 )) && __hsmw_ctx_which=${#__hsmw_ctx_found}-1
|
||||
__hsmw_ctx_idx=0
|
||||
_hsmw_ctx_main
|
||||
}
|
||||
|
||||
_hsmw_ctx_down() {
|
||||
(( __hsmw_ctx_which ++ ))
|
||||
(( __hsmw_ctx_which >= ${#__hsmw_ctx_found} )) && __hsmw_ctx_which=0
|
||||
__hsmw_ctx_idx=0
|
||||
_hsmw_ctx_main
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue