fix index error in fuzzy search
This commit is contained in:
parent
5498cbf30b
commit
4338c5a6ef
@ -110,6 +110,7 @@ func (fs *FuzzySearchModal) changeHandler(str string) {
|
|||||||
}
|
}
|
||||||
//fs.parent.parent.Render()
|
//fs.parent.parent.Render()
|
||||||
fs.results.Highlight(strconv.Itoa(fs.matches[0].OriginalIndex))
|
fs.results.Highlight(strconv.Itoa(fs.matches[0].OriginalIndex))
|
||||||
|
fs.selected = 0
|
||||||
fs.results.ScrollToBeginning()
|
fs.results.ScrollToBeginning()
|
||||||
} else {
|
} else {
|
||||||
fs.results.Clear()
|
fs.results.Clear()
|
||||||
|
Loading…
Reference in New Issue
Block a user