mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-28 11:50:25 +00:00
Fix scrolling bug
This commit is contained in:
parent
757986ae3f
commit
e3d629f2b5
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ class View {
|
|||
if (topline > 0)
|
||||
topline--;
|
||||
} else if (e.key == Key.mouseWheelDown) {
|
||||
if (topline < buf.lines.length - height)
|
||||
if (buf.lines.length > height && topline < buf.lines.length - height)
|
||||
topline++;
|
||||
} else {
|
||||
if (e.key == Key.arrowUp) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue