summaryrefslogtreecommitdiff
path: root/jet.c
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2020-04-14 00:25:07 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2020-04-14 00:25:07 -0300
commita01452b92b38f51ddcde14e7fa8d238e4d57dbb0 (patch)
tree9db22fc95cf27da681668866a9b73d81420d0210 /jet.c
parent3a057c037f3a8f28e27c520db041f8025eba53c2 (diff)
downloadjet-a01452b92b38f51ddcde14e7fa8d238e4d57dbb0.tar.gz
jet-a01452b92b38f51ddcde14e7fa8d238e4d57dbb0.zip
Fix scrolling down to end of file
Diffstat (limited to 'jet.c')
-rw-r--r--jet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jet.c b/jet.c
index b65ef81..1ec215c 100644
--- a/jet.c
+++ b/jet.c
@@ -56,7 +56,7 @@ int main(int argc, char *argv[]) {
if (current_line > 0) current_line--;
break;
case KEY_DOWN:
- if (current_line < number_of_lines) current_line++;
+ if (current_line < number_of_lines - window_height) current_line++;
}
}