mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-04 22:20:20 +09:00
Fix scrolling bug
This commit is contained in:
2
dub.sdl
2
dub.sdl
@@ -2,4 +2,4 @@ name "micro"
|
||||
description "A minimal D application."
|
||||
copyright "Copyright © 2016, zachary"
|
||||
authors "zachary"
|
||||
dependency "termbox" version="0.0.4"
|
||||
dependency "termbox" version="0.0.5"
|
||||
|
||||
@@ -160,7 +160,7 @@ class View {
|
||||
}
|
||||
|
||||
if (cursor.y > topline + height-1) {
|
||||
topline = cursor.y - height-1;
|
||||
topline = cursor.y - height+1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user