summaryrefslogtreecommitdiff
path: root/jet.c
diff options
context:
space:
mode:
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++;
}
}