mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-25 18:07:07 +09:00
Fix scrolling bug
This commit is contained in:
@@ -101,7 +101,7 @@ class View {
|
|||||||
if (topline > 0)
|
if (topline > 0)
|
||||||
topline--;
|
topline--;
|
||||||
} else if (e.key == Key.mouseWheelDown) {
|
} else if (e.key == Key.mouseWheelDown) {
|
||||||
if (topline < buf.lines.length - height)
|
if (buf.lines.length > height && topline < buf.lines.length - height)
|
||||||
topline++;
|
topline++;
|
||||||
} else {
|
} else {
|
||||||
if (e.key == Key.arrowUp) {
|
if (e.key == Key.arrowUp) {
|
||||||
|
|||||||
Reference in New Issue
Block a user