From 4beab9da1bbf65f93151a9a6fc325429915eda6d Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Mon, 14 Mar 2016 14:12:17 -0400 Subject: [PATCH] Fix scrolling bug --- dub.sdl | 2 +- src/view.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dub.sdl b/dub.sdl index 9864fd03..dad7a22c 100644 --- a/dub.sdl +++ b/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" diff --git a/src/view.d b/src/view.d index 908fdb3c..072e89ff 100644 --- a/src/view.d +++ b/src/view.d @@ -160,7 +160,7 @@ class View { } if (cursor.y > topline + height-1) { - topline = cursor.y - height-1; + topline = cursor.y - height+1; } } }