summaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authornicm <nicm>2017-11-02 18:26:38 +0000
committernicm <nicm>2017-11-02 18:26:38 +0000
commit3887d95bcae1f31ec13c2a24ff29ad211a93a5f7 (patch)
treeddffdafdd29120fa9d30892d5e8fb1a5346d58f4 /screen.c
parente91e8a2a6c9bd36309acc58723cb62edc4410931 (diff)
There is no point in reflowing panes which have not changed width.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index 800dbe8f..c792c04a 100644
--- a/screen.c
+++ b/screen.c
@@ -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);