mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-28 13:48:53 +08:00
fix searchpopup not working
This commit is contained in:
parent
21019e6884
commit
2c6690cf1e
3
popup.go
3
popup.go
@ -436,7 +436,6 @@ func searchPopup(title string, stringsToMatch []string, handler func(selected st
|
||||
pattern := input.GetText()
|
||||
matches := fuzzy.Find(pattern, stringsToMatch)
|
||||
const highlight = "[red]%c[-]"
|
||||
// const highlight = "[red]%s[-]"
|
||||
|
||||
for _, match := range matches {
|
||||
var text strings.Builder
|
||||
@ -515,8 +514,6 @@ func searchPopup(title string, stringsToMatch []string, handler func(selected st
|
||||
|
||||
gomu.pages.AddPage("search-input-popup", center(popupFrame, 70, 40), true, true)
|
||||
gomu.popups.push(popup)
|
||||
// This is to ensure the popup is shown even when paused
|
||||
gomu.app.Draw()
|
||||
}
|
||||
|
||||
// Creates new popup widget with default settings
|
||||
|
Loading…
x
Reference in New Issue
Block a user