From a01452b92b38f51ddcde14e7fa8d238e4d57dbb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Tue, 14 Apr 2020 00:25:07 -0300 Subject: Fix scrolling down to end of file --- jet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } } -- cgit v1.2.3