aboutsummaryrefslogtreecommitdiff
path: root/gomuks.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-03-17 14:00:02 +0200
committerTulir Asokan <tulir@maunium.net>2018-03-17 14:00:02 +0200
commitdacc7fd6a310d3945bc61983ec218d083900a98d (patch)
tree3677189b8cb853113f1bec026189d9f0937df31c /gomuks.go
parent4196931e1bef5c4e6cdea2e8921703be286b717a (diff)
Fix wide characters in input field and prepare for tab completion
Diffstat (limited to 'gomuks.go')
-rw-r--r--gomuks.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/gomuks.go b/gomuks.go
index acb64c9..237d3e9 100644
--- a/gomuks.go
+++ b/gomuks.go
@@ -45,12 +45,15 @@ type gomuks struct {
config *Config
}
+var gdebug DebugPrinter
+
func NewGomuks(debug bool) *gomuks {
configDir := filepath.Join(os.Getenv("HOME"), ".config/gomuks")
gmx := &gomuks{
app: tview.NewApplication(),
}
gmx.debug = NewDebugPane(gmx)
+ gdebug = gmx.debug
gmx.config = NewConfig(gmx, configDir)
gmx.ui = NewGomuksUI(gmx)
gmx.matrix = NewMatrixContainer(gmx)