aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui/context.go
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2024-02-12 06:26:17 -0600
committerRobin Jarry <robin@jarry.cc>2024-02-12 13:48:46 +0100
commit0fd5f4115792e706f73202d77fac404c0033333b (patch)
treeb160998cab40d62efb38552da4028a744c80e723 /lib/ui/context.go
parent787cfbd9a90a26072a8dd61a28eca11dd6e20c04 (diff)
downloadaerc-0fd5f4115792e706f73202d77fac404c0033333b.tar.gz
ui: initialize vaxis directly, drop tcell.Screen initialization
Use Vaxis library directly to initialize the UI, dropping the need for a tcell Screen implementation Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/ui/context.go')
-rw-r--r--lib/ui/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ui/context.go b/lib/ui/context.go
index 10089179..f1cc2a95 100644
--- a/lib/ui/context.go
+++ b/lib/ui/context.go
@@ -30,7 +30,7 @@ func (ctx *Context) Window() vaxis.Window {
return ctx.window
}
-func NewContext(width, height int, vx *vaxis.Vaxis, p func(*Popover)) *Context {
+func NewContext(vx *vaxis.Vaxis, p func(*Popover)) *Context {
win := vx.Window()
return &Context{win, 0, 0, p}
}