Fix findNext and findPrevious with certain regexes

Fixes #576
This commit is contained in:
Zachary Yedidia
2017-03-05 11:20:42 -05:00
parent 253e86230c
commit da5542a557

View File

@@ -791,7 +791,7 @@ func (v *View) FindNext(usePlugin bool) bool {
if v.Cursor.HasSelection() {
searchStart = ToCharPos(v.Cursor.CurSelection[1], v.Buf)
lastSearch = v.Cursor.GetSelection()
// lastSearch = v.Cursor.GetSelection()
} else {
searchStart = ToCharPos(v.Cursor.Loc, v.Buf)
}