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-Tag: tig-0.2~10 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/tig/commitdiff_plain/a8891802e6ca2f483c6dccb20718555bf87abff6?ds=inline 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;