diff --git a/nav.go b/nav.go index 863d499..4dc2d43 100644 --- a/nav.go +++ b/nav.go @@ -365,7 +365,7 @@ func (nav *nav) searchNext() { func (nav *nav) searchPrev() { last := nav.currDir() - for i := last.ind - 1; i > 0; i-- { + for i := last.ind - 1; i >= 0; i-- { if strings.Contains(last.fi[i].Name(), nav.search) { nav.up(last.ind - i) return