From 1f89b41070b0326e64ee8dba03122ec9c404cf18 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Thu, 9 Jun 2016 09:29:23 -0400 Subject: [PATCH] Fix mouse coordinates when tabbar is open Fixes #170 --- cmd/micro/view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/micro/view.go b/cmd/micro/view.go index 0694b17f..c12891ab 100644 --- a/cmd/micro/view.go +++ b/cmd/micro/view.go @@ -334,7 +334,7 @@ func (v *View) HandleEvent(event tcell.Event) { case *tcell.EventMouse: x, y := e.Position() x -= v.lineNumOffset - v.leftCol - y += v.Topline + y += v.Topline - v.y // Don't relocate for mouse events relocate = false