This commit is contained in:
Zachary Yedidia
2016-03-21 17:02:41 -04:00
parent d2d02b36c3
commit 11bc2cfbad

View File

@@ -250,7 +250,7 @@ func (v *View) HandleEvent(event tcell.Event) int {
y = v.height + v.topline - 1
}
if y > len(v.buf.lines) {
y = len(v.buf.lines) - 2
y = len(v.buf.lines) - 1
}
if x < 0 {
x = 0