mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-24 17:50:15 +09:00
Minor bug fixes
This commit is contained in:
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user