Revert "fix restoring cursor position after leaving altscreen"

This caused degrade when restoring cursor in other cases,
revert, while looking for better fix

This reverts commit a48e1f96dc.

Bug: 51832
This commit is contained in:
Amadeusz Sławiński
2017-10-03 11:13:40 +02:00
parent 250a064cb3
commit adae52b23a
2 changed files with 1 additions and 9 deletions

View File

@@ -1149,8 +1149,8 @@ static void DoCSI(Window *win, int c, int intermediate)
}
} else {
if (win->w_alt.on) {
LeaveAltScreen(win);
RestoreCursor(win, &win->w_alt.cursor);
LeaveAltScreen(win);
}
}
if (a1 == 47 && !i)

View File

@@ -800,14 +800,6 @@ static void SwapAltScreen(Window *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;
SWAP(histheight, t);
SWAP(hlines, ml);
SWAP(histidx, t);