~delthas/senpai-dev

ui: fix "mouse false" config v1 REJECTED

Lauri Tirkkonen: 1
 ui: fix "mouse false" config

 1 files changed, 1 insertions(+), 4 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~delthas/senpai-dev/patches/53066/mbox | git am -3
Learn more about email & git

[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.