From: Jonas Fonseca Date: Wed, 26 Apr 2006 23:30:07 +0000 (+0200) Subject: Possible simplification X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bde3653aaa9b1b2b34945eb0b8986799b694afe2;p=tig.git Possible simplification --- diff --git a/tig.c b/tig.c index 5f0a9e1..c60efaf 100644 --- 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");