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:
parent
dd74a30953
commit
a5f2cb4982
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user