fix fwd search crash

This commit is contained in:
Cheney 2015-09-23 14:22:22 +08:00
parent 0de649aeb5
commit bc96fada95
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ func (o *opHistory) FindHistoryFwd(isNewSearch bool, rs []rune, start int) (int,
if elem == o.current {
if len(item)-1 >= start {
item = item[start:]
} else {
continue
}
}
idx := RunesIndex(item, rs)