summaryrefslogtreecommitdiff
path: root/splash.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-29 11:10:12 -0700
committerJeff Carr <[email protected]>2019-05-29 11:10:12 -0700
commitec50a45351a5bd38009e2b2db69121b86fd15fa7 (patch)
tree34ae38520343efcfd357bda5578dfffbb9309d71 /splash.go
parent5a24461b59b49f622283951e1891559f6323a42d (diff)
correctly dereference the AreaHandler
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'splash.go')
-rw-r--r--splash.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/splash.go b/splash.go
index 8558beb..96a360b 100644
--- a/splash.go
+++ b/splash.go
@@ -14,12 +14,13 @@ func ShowSplashBox() *ui.Box {
newbox := ui.NewVerticalBox()
newbox.SetPadded(true)
+ // initialize the AreaHandler{}
myAH = new(AreaHandler)
newText := makeAttributedString()
myAH.Attrstr = newText
- newAH := makeSplashArea()
+ makeSplashArea(myAH)
- newbox.Append(newAH.Area, true)
+ newbox.Append(myAH.Area, true)
if runtime.GOOS == "linux" {
newbox.Append(ui.NewLabel("OS: Linux"), false)