mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-19 15:30:30 +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
|
||||
}
|
||||
if y > len(v.buf.lines) {
|
||||
y = len(v.buf.lines) - 2
|
||||
y = len(v.buf.lines) - 1
|
||||
}
|
||||
if x < 0 {
|
||||
x = 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue