aboutsummaryrefslogtreecommitdiffstats
path: root/aerc.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-05-02 14:06:02 +0200
committerDrew DeVault <sir@cmpwn.com>2020-05-06 10:00:59 -0400
commit6bd6690d80931062210d18f3e9855074707b03a8 (patch)
treef1d0460cb11a51037bda61f170ffad1c60b5a5f4 /aerc.go
parent434eaa19a18a1f4c49796118e3c601317374474e (diff)
downloadaerc-6bd6690d80931062210d18f3e9855074707b03a8.tar.gz
templates: add version func
Fixes #316
Diffstat (limited to 'aerc.go')
-rw-r--r--aerc.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/aerc.go b/aerc.go
index 1b51d6d3..12d94531 100644
--- a/aerc.go
+++ b/aerc.go
@@ -19,6 +19,7 @@ import (
"git.sr.ht/~sircmpwn/aerc/commands/terminal"
"git.sr.ht/~sircmpwn/aerc/config"
"git.sr.ht/~sircmpwn/aerc/lib"
+ "git.sr.ht/~sircmpwn/aerc/lib/templates"
libui "git.sr.ht/~sircmpwn/aerc/lib/ui"
"git.sr.ht/~sircmpwn/aerc/widgets"
)
@@ -179,6 +180,9 @@ func main() {
as.OnMailto = aerc.Mailto
}
+ // set the aerc version so that we can use it in the template funcs
+ templates.SetVersion(Version)
+
close(initDone)
for !ui.ShouldExit() {