mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-12 07:32:44 +09:00
Fix scrolling bug
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user