diff options
author | Thomas Adam <thomas.adam@smoothwall.net> | 2013-02-07 12:08:55 +0000 |
---|---|---|
committer | Thomas Adam <thomas.adam@smoothwall.net> | 2013-02-07 12:08:55 +0000 |
commit | 64da762c15ddf0930baa1f8e4fc2b41515a64e3a (patch) | |
tree | cd2a953395962c7f2e7265d16722508a80606372 /window.c | |
parent | fe00607816308953209cb85ab92a586c1f344cde (diff) | |
parent | 8903c1f167839569b7514508b38988aa6486575c (diff) | |
download | rtmux-64da762c15ddf0930baa1f8e4fc2b41515a64e3a.tar.gz rtmux-64da762c15ddf0930baa1f8e4fc2b41515a64e3a.tar.bz2 rtmux-64da762c15ddf0930baa1f8e4fc2b41515a64e3a.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -854,7 +854,7 @@ window_pane_resize(struct window_pane *wp, u_int sx, u_int sy) ws.ws_col = sx; ws.ws_row = sy; - screen_resize(&wp->base, sx, sy); + screen_resize(&wp->base, sx, sy, wp->saved_grid == NULL); if (wp->mode != NULL) wp->mode->resize(wp, sx, sy); @@ -924,7 +924,7 @@ window_pane_alternate_off(struct window_pane *wp, struct grid_cell *gc, * before copying back. */ if (sy > wp->saved_grid->sy) - screen_resize(s, sx, wp->saved_grid->sy); + screen_resize(s, sx, wp->saved_grid->sy, 1); /* Restore the grid, cursor position and cell. */ grid_duplicate_lines(s->grid, screen_hsize(s), wp->saved_grid, 0, sy); @@ -943,8 +943,8 @@ window_pane_alternate_off(struct window_pane *wp, struct grid_cell *gc, * the current size. */ wp->base.grid->flags |= GRID_HISTORY; - if (sy > wp->saved_grid->sy) - screen_resize(s, sx, sy); + if (sy > wp->saved_grid->sy || sx != wp->saved_grid->sx) + screen_resize(s, sx, sy, 1); grid_destroy(wp->saved_grid); wp->saved_grid = NULL; |