Fix scrolling bug

This commit is contained in:
Zachary Yedidia 2016-03-14 14:12:17 -04:00
parent c9803683af
commit 4beab9da1b
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -160,7 +160,7 @@ class View {
}
if (cursor.y > topline + height-1) {
topline = cursor.y - height-1;
topline = cursor.y - height+1;
}
}
}