When exiting alternate screen, there is no need to reflow when going
authornicm <nicm@openbsd.org>
Mon, 26 Jun 2023 08:14:19 +0000 (08:14 +0000)
committernicm <nicm@openbsd.org>
Mon, 26 Jun 2023 08:14:19 +0000 (08:14 +0000)
back to old size since the contents will be overwritten. GitHub issue
3510.

usr.bin/tmux/screen.c

index 30267c4..4835895 100644 (file)
@@ -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