1 diff --git a/src/ansi.c b/src/ansi.c
2 index e76eef4..bbdc119 100644
5 @@ -1444,8 +1444,8 @@ int c, intermediate;
9 - LeaveAltScreen(curr);
10 - RestoreCursor(&curr->w_alt.cursor);
11 + RestoreCursor(&curr->w_alt.cursor);
12 + LeaveAltScreen(curr);