fix index error in fuzzy search

This commit is contained in:
evan 2021-02-20 20:25:19 -06:00 committed by Tulir Asokan
parent 5498cbf30b
commit 4338c5a6ef

View File

@ -110,6 +110,7 @@ func (fs *FuzzySearchModal) changeHandler(str string) {
}
//fs.parent.parent.Render()
fs.results.Highlight(strconv.Itoa(fs.matches[0].OriginalIndex))
fs.selected = 0
fs.results.ScrollToBeginning()
} else {
fs.results.Clear()