summaryrefslogtreecommitdiff
path: root/jet2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'jet2.cpp')
-rw-r--r--jet2.cpp2
1 files changed, 2 insertions, 0 deletions
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++;