aboutsummaryrefslogtreecommitdiffstats
path: root/aerc.go
diff options
context:
space:
mode:
authorNicolai Dagestad <nicolai@dagestad.fr>2019-08-03 17:17:13 +0200
committerDrew DeVault <sir@cmpwn.com>2019-08-03 16:50:49 -0400
commit0847464da1da5c2df19e107ee3884ab7996c1756 (patch)
tree157e77e9abd57b234313fa8978e6a41ff080a85a /aerc.go
parent63f934ee71cdf2c96379c393566556b7c289cceb (diff)
downloadaerc-0847464da1da5c2df19e107ee3884ab7996c1756.tar.gz
Remove aerc specific code from the ui
Separatiing the ui code from aerc makes it usable as a library in other projects.
Diffstat (limited to 'aerc.go')
-rw-r--r--aerc.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/aerc.go b/aerc.go
index cfd192a0..c71c3843 100644
--- a/aerc.go
+++ b/aerc.go
@@ -150,12 +150,16 @@ func main() {
return getCompletions(aerc, cmd)
}, &commands.CmdHistory)
- ui, err = libui.Initialize(conf, aerc)
+ ui, err = libui.Initialize(aerc)
if err != nil {
panic(err)
}
defer ui.Close()
+ if conf.Ui.MouseEnabled {
+ ui.EnableMouse()
+ }
+
logger.Println("Starting Unix server")
as, err := lib.StartServer(logger)
if err != nil {