From bde3653aaa9b1b2b34945eb0b8986799b694afe2 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Thu, 27 Apr 2006 01:30:07 +0200 Subject: [PATCH] Possible simplification --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.30.2