diff --git a/src/ansi.c b/src/ansi.c index 8cc9249..6636d10 100644 --- a/src/ansi.c +++ b/src/ansi.c @@ -1446,8 +1446,8 @@ int c, intermediate; else { if (curr->w_alt.on) { - LeaveAltScreen(curr); RestoreCursor(&curr->w_alt.cursor); + LeaveAltScreen(curr); } } if (a1 == 47 && !i) diff --git a/src/resize.c b/src/resize.c index 9790012..fc4ddb9 100644 --- a/src/resize.c +++ b/src/resize.c @@ -1093,14 +1093,6 @@ struct win *p; SWAP(width, t); SWAP(height, t); - /* we need to swap cursor positions, but they are not swappable with macro */ - t = p->w_alt.cursor.x; - p->w_alt.cursor.x = p->w_x; - p->w_x = t; - t = p->w_alt.cursor.y; - p->w_alt.cursor.y = p->w_y; - p->w_y = t; - #ifdef COPY_PASTE SWAP(histheight, t); SWAP(hlines, ml);