2
0
mirror of https://github.com/skanehira/tson synced 2024-11-15 12:13:04 +00:00

ignore case when filtering

This commit is contained in:
skanehira 2019-10-31 00:25:04 +09:00
parent dd74a30953
commit a5f2cb4982

View File

@ -143,7 +143,7 @@ func (g *Gui) Search() {
func (g *Gui) walk(node *tview.TreeNode, text string) []*tview.TreeNode {
var nodes []*tview.TreeNode
if strings.Index(node.GetText(), text) != -1 {
if strings.Index(strings.ToLower(node.GetText()), text) != -1 {
nodes = append(nodes, node)
return nodes
}