Fix text selection panic caused by clipboard

This commit is contained in:
Tulir Asokan 2020-11-21 16:26:02 +02:00
parent 25bc7dfff3
commit f3854524bc

View File

@ -20,6 +20,7 @@ import (
"os" "os"
"maunium.net/go/mauview" "maunium.net/go/mauview"
"github.com/zyedidia/clipboard"
"maunium.net/go/tcell" "maunium.net/go/tcell"
"maunium.net/go/gomuks/interface" "maunium.net/go/gomuks/interface"
@ -62,6 +63,7 @@ func NewGomuksUI(gmx ifc.Gomuks) ifc.GomuksUI {
} }
func (ui *GomuksUI) Init() { func (ui *GomuksUI) Init() {
clipboard.Initialize()
ui.views = map[View]mauview.Component{ ui.views = map[View]mauview.Component{
ViewLogin: ui.NewLoginView(), ViewLogin: ui.NewLoginView(),
ViewMain: ui.NewMainView(), ViewMain: ui.NewMainView(),