From 5ac508ded8d4a5e60f8b66c22d223ae7c15c6152 Mon Sep 17 00:00:00 2001 From: chzyer <0@0xdf.com> Date: Mon, 3 Oct 2016 14:49:32 +0800 Subject: [PATCH] [history] fix test --- history.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }