diff --git a/history.go b/history.go index 0a973b5..b154aed 100644 --- a/history.go +++ b/history.go @@ -153,7 +153,7 @@ func (o *opHistory) FindBck(isNewSearch bool, rs []rune, start int) (int, *list. item = item[:start] } } - idx := runes.IndexAllBckEx(item, rs, o.cfg.HistoryFoldSearch) + idx := runes.IndexAllBckEx(item, rs, o.cfg.HistorySearchFold) if idx < 0 { continue } @@ -178,7 +178,7 @@ func (o *opHistory) FindFwd(isNewSearch bool, rs []rune, start int) (int, *list. continue } } - idx := runes.IndexAllEx(item, rs, o.cfg.HistoryFoldSearch) + idx := runes.IndexAllEx(item, rs, o.cfg.HistorySearchFold) if idx < 0 { continue }