From 905ae13aa12abc3fbbafc646a722b2d38bbeef8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Thu, 16 Jul 2020 21:12:46 -0300 Subject: Fix client crash when cursor goes to end of file --- jet2.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'jet2.cpp') diff --git a/jet2.cpp b/jet2.cpp index 9bfa52c..9fb4027 100644 --- a/jet2.cpp +++ b/jet2.cpp @@ -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++; -- cgit v1.2.3