include first item in reverse search (#54)

This commit is contained in:
Olivier Perret authored and gokcehan committed 2016-12-26 23:47:27 +03:00
1 parent ad6ead5e45
commit 79b874e147
1 file changed
+1 -1
+1 -1
View File
@@ -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