From: Jonas Fonseca Date: Wed, 26 Apr 2006 23:30:07 +0000 (+0200) Subject: Possible simplification X-Git-Tag: tig-0.1~5 X-Git-Url: https://git.distorted.org.uk/~mdw/tig/commitdiff_plain/bde3653aaa9b1b2b34945eb0b8986799b694afe2?hp=b801d8b2bc1a6aac6b9744f21f7a10a51e16c53e 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");