diff options
author | Amadeusz Sławiński <amade@asmblr.net> | 2017-10-03 11:11:44 +0200 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2017-10-03 11:11:44 +0200 |
commit | aaac75d80948be3f1753ca5c9b6edc02b7804535 (patch) | |
tree | 19712a6ba724b3ac05ab43ffef8362b24f7975f4 | |
parent | 9019b0d063dad728c2d9f38c9443c409b6111e4b (diff) | |
download | screen-aaac75d80948be3f1753ca5c9b6edc02b7804535.tar.gz |
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 8062db33b87ed86ec54222c83babbf1aa5866ec9.
Bug: 51832
-rw-r--r-- | src/ansi.c | 2 | ||||
-rw-r--r-- | src/resize.c | 8 |
2 files changed, 1 insertions, 9 deletions
@@ -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); |