Code

Possible simplification
authorJonas Fonseca <fonseca@diku.dk>
Wed, 26 Apr 2006 23:30:07 +0000 (01:30 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Wed, 26 Apr 2006 23:30:07 +0000 (01:30 +0200)
tig.c

diff --git a/tig.c b/tig.c
index 5f0a9e16698d98c87ce22f96e3b93e10eb7f8ec7..c60efafbc40a79536af0999b0721bd8fcc232816 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -223,7 +223,7 @@ scroll_view(struct view *view, int request)
                lines = y;
        case REQ_NEXT_LINE:
                if (view->offset + lines > view->lines)
-                       lines = view->lines - view->offset - 1;
+                       lines = view->lines - view->offset;
 
                if (lines == 0 || view->offset + y >= view->lines) {
                        report("already at last line");