aboutsummaryrefslogtreecommitdiffstats
path: root/ui/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/context.go')
-rw-r--r--ui/context.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/context.go b/ui/context.go
index 9f2e2fe5..e7d9ebe0 100644
--- a/ui/context.go
+++ b/ui/context.go
@@ -22,8 +22,7 @@ func (ctx *Context) Height() int {
return ctx.height
}
-func NewContext() *Context {
- width, height := termbox.Size()
+func NewContext(width, height int) *Context {
return &Context{0, 0, width, height}
}