diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-07-16 21:12:46 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-07-16 21:12:46 -0300 |
commit | 905ae13aa12abc3fbbafc646a722b2d38bbeef8f (patch) | |
tree | 05643f0a82db0a1f622dac6030b7d4bbc50e21c7 | |
parent | 4d10bce15ce052e364392d94c3a3a0af602b8e25 (diff) | |
download | jet-905ae13aa12abc3fbbafc646a722b2d38bbeef8f.tar.gz jet-905ae13aa12abc3fbbafc646a722b2d38bbeef8f.zip |
Fix client crash when cursor goes to end of file
-rw-r--r-- | jet2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -87,6 +87,8 @@ int main(int argc, char *argv[]) { if (cursor_y < window_height - 1) { cursor_x = 0; cursor_y++; + } else { + break; } } else { cursor_x++; |