Skip to content

Commit

Permalink
fix fwd search crash
Browse files Browse the repository at this point in the history
  • Loading branch information
chzyer committed Sep 23, 2015
1 parent 0de649a commit bc96fad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions history.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bc96fad

Please sign in to comment.