mirror of https://github.com/chzyer/readline.git
[history] fix test
This commit is contained in:
parent
5073debd7e
commit
5ac508ded8
|
@ -153,7 +153,7 @@ func (o *opHistory) FindBck(isNewSearch bool, rs []rune, start int) (int, *list.
|
||||||
item = item[:start]
|
item = item[:start]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
idx := runes.IndexAllBckEx(item, rs, o.cfg.HistoryFoldSearch)
|
idx := runes.IndexAllBckEx(item, rs, o.cfg.HistorySearchFold)
|
||||||
if idx < 0 {
|
if idx < 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -178,7 +178,7 @@ func (o *opHistory) FindFwd(isNewSearch bool, rs []rune, start int) (int, *list.
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
idx := runes.IndexAllEx(item, rs, o.cfg.HistoryFoldSearch)
|
idx := runes.IndexAllEx(item, rs, o.cfg.HistorySearchFold)
|
||||||
if idx < 0 {
|
if idx < 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue