From: nicm Date: Mon, 26 Jun 2023 08:14:19 +0000 (+0000) Subject: When exiting alternate screen, there is no need to reflow when going X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=37e1ec451642b73b5faf4c0ceb9b7b7f59ae7a31;p=openbsd 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. --- 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 @@ -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