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 8062db33b8.

Bug: 51832
This commit is contained in:
Amadeusz Sławiński
2017-10-03 11:11:44 +02:00
parent 9019b0d063
commit aaac75d809
2 changed files with 1 additions and 9 deletions

View File

@@ -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)

View File

@@ -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);