[PATCH] ui: fix "mouse false" config
Export this patch
vaxis doesn't implement DisableMouse(), instead requiring an option at
init time
---
ui/ui.go | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/ui/ui.go b/ui/ui.go
index 801ee99..77e5a55 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -73,13 +73,10 @@ func New(config Config) (ui *UI, err error) {
return
}
- err = ui.screen.Init()
+ err = ui.screen.Init(vaxis.Options{DisableMouse: !config.Mouse})
if err != nil {
return
}
- if ui.screen.HasMouse() && config.Mouse {
- ui.screen.EnableMouse()
- }
ui.screen.EnablePaste()
ui.screen.SetCursorStyle(tcell.CursorStyleSteadyBar)
ui.screen.SetTitle("senpai")
--
2.45.1
Hi,
Thanks for the patch!
I ended up fixing this as part of my big Vaxis rewrite.