diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2023-06-26 08:14:20 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2023-06-26 08:14:20 +0000 |
commit | 9b9b598a5f2a1a692746f27a2e5f4edf544df07a (patch) | |
tree | c95b9a1c2ece8a18e9cd600ce81745d10add50e0 | |
parent | 2090364a650fcd3bc55f43e13403fc172cb8fbfb (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.
-rw-r--r-- | usr.bin/tmux/screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/screen.c b/usr.bin/tmux/screen.c index 30267c479ac..483589594de 100644 --- a/usr.bin/tmux/screen.c +++ b/usr.bin/tmux/screen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen.c,v 1.81 2022/06/30 09:55:53 nicm Exp $ */ +/* $OpenBSD: screen.c,v 1.82 2023/06/26 08:14:19 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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 |