summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b801d8b)
raw | patch | inline | side by side (parent: b801d8b)
author | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 26 Apr 2006 23:30:07 +0000 (01:30 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Wed, 26 Apr 2006 23:30:07 +0000 (01:30 +0200) |
tig.c | patch | blob | history |
index 5f0a9e16698d98c87ce22f96e3b93e10eb7f8ec7..c60efafbc40a79536af0999b0721bd8fcc232816 100644 (file)
--- a/tig.c
+++ b/tig.c
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");