Make search more robust

This commit is contained in:
erroneousboat 2017-12-17 14:25:39 +01:00
parent d66673d4b6
commit c9884997ec

View File

@ -211,8 +211,10 @@ func (c *Channels) Search(term string) {
}
}
c.GotoPosition(0)
c.SearchPosition = 0
if len(c.SearchMatches) > 0 {
c.GotoPosition(0)
c.SearchPosition = 0
}
}
// GotoPosition is used by the search functionality to automatically