From 661e3ec2a4dd97d4a8a8eab4f281b088770a6af2 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 26 Feb 2018 22:41:54 -0500 Subject: Implement basic ex line input TODO: - scrolling - commit/cancel - command history (via an external command history provider) - tab completion (via an external tab completion provider) --- ui/context.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ui/context.go') diff --git a/ui/context.go b/ui/context.go index ae9e561..ca3f452 100644 --- a/ui/context.go +++ b/ui/context.go @@ -15,6 +15,14 @@ type Context struct { height int } +func (ctx *Context) X() int { + return ctx.x +} + +func (ctx *Context) Y() int { + return ctx.y +} + func (ctx *Context) Width() int { return ctx.width } -- cgit v1.2.3