diff options
Diffstat (limited to '')
-rw-r--r-- | app.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -52,12 +52,18 @@ func NewApp(cfg Config) (app *App, err error) { } } + mouse := true + if cfg.Mouse != nil { + mouse = *cfg.Mouse + } + app.win, err = ui.New(ui.Config{ NickColWidth: cfg.NickColWidth, ChanColWidth: cfg.ChanColWidth, AutoComplete: func(cursorIdx int, text []rune) []ui.Completion { return app.completions(cursorIdx, text) }, + Mouse: mouse, }) if err != nil { return |