From bc96fada95566a30504e48a366abed0331444f16 Mon Sep 17 00:00:00 2001 From: Cheney Date: Wed, 23 Sep 2015 14:22:22 +0800 Subject: [PATCH] fix fwd search crash --- history.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/history.go b/history.go index 07985c4..c00cba5 100644 --- a/history.go +++ b/history.go @@ -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)