chiark
/
gitweb
/
~mdw
/
tig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Possible simplification
[tig]
/
tig.c
diff --git
a/tig.c
b/tig.c
index 5f0a9e16698d98c87ce22f96e3b93e10eb7f8ec7..c60efafbc40a79536af0999b0721bd8fcc232816 100644
(file)
--- 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");