mirror of
https://github.com/zyedidia/micro
synced 2024-11-05 17:41:24 +00:00
Fix scrolling bug
This commit is contained in:
parent
c9803683af
commit
4beab9da1b
2 changed files with 2 additions and 2 deletions
2
dub.sdl
2
dub.sdl
|
@ -2,4 +2,4 @@ name "micro"
|
||||||
description "A minimal D application."
|
description "A minimal D application."
|
||||||
copyright "Copyright © 2016, zachary"
|
copyright "Copyright © 2016, zachary"
|
||||||
authors "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) {
|
if (cursor.y > topline + height-1) {
|
||||||
topline = cursor.y - height-1;
|
topline = cursor.y - height+1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue