diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-04-14 00:25:07 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-04-14 00:25:07 -0300 |
commit | a01452b92b38f51ddcde14e7fa8d238e4d57dbb0 (patch) | |
tree | 9db22fc95cf27da681668866a9b73d81420d0210 /jet.c | |
parent | 3a057c037f3a8f28e27c520db041f8025eba53c2 (diff) | |
download | jet-a01452b92b38f51ddcde14e7fa8d238e4d57dbb0.tar.gz jet-a01452b92b38f51ddcde14e7fa8d238e4d57dbb0.zip |
Fix scrolling down to end of file
Diffstat (limited to 'jet.c')
-rw-r--r-- | jet.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++; } } |