- if e.Buttons() == tcell.Button1 {
- // If the user left clicked we check a couple things
- _, h := screen.Size()
- x, y := e.Position()
- if y == h-1 && messenger.message != "" && globalSettings["infobar"].(bool) {
- // If the user clicked in the bottom bar, and there is a message down there
- // we copy it to the clipboard.
- // Often error messages are displayed down there so it can be useful to easily
- // copy the message
- clipboard.WriteAll(messenger.message, "primary")
- break
- }
+ if !searching {
+ if e.Buttons() == tcell.Button1 {
+ // If the user left clicked we check a couple things
+ _, h := screen.Size()
+ x, y := e.Position()
+ if y == h-1 && messenger.message != "" && globalSettings["infobar"].(bool) {
+ // If the user clicked in the bottom bar, and there is a message down there
+ // we copy it to the clipboard.
+ // Often error messages are displayed down there so it can be useful to easily
+ // copy the message
+ clipboard.WriteAll(messenger.message, "primary")
+ break
+ }