summaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authornicm <nicm>2023-06-26 08:14:19 +0000
committernicm <nicm>2023-06-26 08:14:19 +0000
commit2546216019efcbb37bfa67ba8ac101c49d42c48b (patch)
tree88b86d03bda6748c63abfd7b52f98af520299cb7 /screen.c
parentff8882a24f44594c871ad849f885bcd895836e73 (diff)
When exiting alternate screen, there is no need to reflow when going
back to old size since the contents will be overwritten. GitHub issue 3510.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index 09326b2d..c0a8468d 100644
--- a/screen.c
+++ b/screen.c
@@ -626,7 +626,7 @@ screen_alternate_off(struct screen *s, struct grid_cell *gc, int cursor)
* before copying back.
*/
if (s->saved_grid != NULL)
- screen_resize(s, s->saved_grid->sx, s->saved_grid->sy, 1);
+ screen_resize(s, s->saved_grid->sx, s->saved_grid->sy, 0);
/*
* Restore the cursor position and cell. This happens even if not