mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-11 10:00:58 +00:00
parent
d87a3eb3ce
commit
b4ca76693c
1 changed files with 3 additions and 0 deletions
|
|
@ -67,6 +67,9 @@ func HandleSearchEvent(event tcell.Event, v *View) {
|
|||
// specifies whether it should search down from the searchStart position
|
||||
// or up from there
|
||||
func Search(searchStr string, v *View, down bool) {
|
||||
if searchStr == "" {
|
||||
return
|
||||
}
|
||||
var str string
|
||||
var charPos int
|
||||
if down {
|
||||
|
|
|
|||
Loading…
Reference in a new issue