diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-11-02 18:26:39 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-11-02 18:26:39 +0000 |
commit | 6cc94558c241acdb0ca077e6c59de00b9cd16f33 (patch) | |
tree | d1a2737ef473acae2329cb8d9316f87f274cafcb /usr.bin | |
parent | 5314f4b84080df986c30bcc67e94a2f0d6d398b7 (diff) |
There is no point in reflowing panes which have not changed width.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/screen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/screen.c b/usr.bin/tmux/screen.c index 32e16ba1935..2963c55aa9d 100644 --- a/usr.bin/tmux/screen.c +++ b/usr.bin/tmux/screen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen.c,v 1.48 2017/10/05 13:29:18 nicm Exp $ */ +/* $OpenBSD: screen.c,v 1.49 2017/11/02 18:26:38 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -197,7 +197,8 @@ screen_resize(struct screen *s, u_int sx, u_int sy, int reflow) * is simpler and more reliable so let's do that. */ screen_reset_tabs(s); - } + } else + reflow = 0; if (sy != screen_size_y(s)) screen_resize_y(s, sy); |