Minor bug fixes

This commit is contained in:
Zachary Yedidia
2016-04-04 18:05:34 -04:00
parent e7a048ca02
commit eadfbf8469
3 changed files with 4 additions and 3 deletions

View File

@@ -453,7 +453,7 @@ func (v *View) HandleEvent(event tcell.Event) {
}
case *tcell.EventMouse:
x, y := e.Position()
x -= v.lineNumOffset + v.leftCol
x -= v.lineNumOffset - v.leftCol
y += v.topline
// Position always seems to be off by one
x--