[history] fix test

This commit is contained in:
chzyer 2016-10-03 14:49:32 +08:00
parent 5073debd7e
commit 5ac508ded8
1 changed files with 2 additions and 2 deletions

View File

@ -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
}