Automatically reflow wrapped lines when a pane is resized, requested by

many over the years and finally implemented by Richard Woodbury.
This commit is contained in:
Nicholas Marriott
2013-02-05 11:08:59 +00:00
parent a5521597b0
commit 8903c1f167
7 changed files with 71 additions and 10 deletions

View File

@ -335,9 +335,9 @@ window_copy_resize(struct window_pane *wp, u_int sx, u_int sy)
struct screen *s = &data->screen;
struct screen_write_ctx ctx;
screen_resize(s, sx, sy);
screen_resize(s, sx, sy, 0);
if (data->backing != &wp->base)
screen_resize(data->backing, sx, sy);
screen_resize(data->backing, sx, sy, 0);
if (data->cy > sy - 1)
data->cy = sy - 1;