mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-27 23:44:00 +00:00
Fix bug
This commit is contained in:
parent
d2d02b36c3
commit
11bc2cfbad
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue