From: Jonas Fonseca Date: Fri, 12 May 2006 10:32:22 +0000 (+0200) Subject: Fix scrolling when current line is outside of splitted view X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a8891802e6ca2f483c6dccb20718555bf87abff6;p=tig.git Fix scrolling when current line is outside of splitted view --- 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;