From a8891802e6ca2f483c6dccb20718555bf87abff6 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Fri, 12 May 2006 12:32:22 +0200 Subject: [PATCH] Fix scrolling when current line is outside of splitted view --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tig.c b/tig.c index c210699..eb7373c 100644 --- a/tig.c +++ b/tig.c @@ -1153,7 +1153,7 @@ open_view(struct view *prev, enum request request, enum open_flags flags) resize_display(); - if (split && prev->lineno - prev->offset > prev->height) { + if (split && prev->lineno - prev->offset >= prev->height) { /* Take the title line into account. */ int lines = prev->lineno - prev->height + 1; -- 2.30.2