Fix mouse coordinates when tabbar is open

Fixes #170
This commit is contained in:
Zachary Yedidia 2016-06-09 09:29:23 -04:00
parent 1295b877e3
commit 1f89b41070

View file

@ -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