Make search more robust
This commit is contained in:
parent
d66673d4b6
commit
c9884997ec
@ -211,8 +211,10 @@ func (c *Channels) Search(term string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(c.SearchMatches) > 0 {
|
||||||
c.GotoPosition(0)
|
c.GotoPosition(0)
|
||||||
c.SearchPosition = 0
|
c.SearchPosition = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// GotoPosition is used by the search functionality to automatically
|
// GotoPosition is used by the search functionality to automatically
|
||||||
|
Loading…
x
Reference in New Issue
Block a user