mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
Fix bug
This commit is contained in:
@@ -250,7 +250,7 @@ func (v *View) HandleEvent(event tcell.Event) int {
|
|||||||
y = v.height + v.topline - 1
|
y = v.height + v.topline - 1
|
||||||
}
|
}
|
||||||
if y > len(v.buf.lines) {
|
if y > len(v.buf.lines) {
|
||||||
y = len(v.buf.lines) - 2
|
y = len(v.buf.lines) - 1
|
||||||
}
|
}
|
||||||
if x < 0 {
|
if x < 0 {
|
||||||
x = 0
|
x = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user