Merge a number of fixes from master for layouts, mostly prompted by testing by

Thomas Sattler.
This commit is contained in:
Nicholas Marriott
2019-04-11 09:26:34 +01:00
parent 73b54a0e5f
commit bba1809eac
7 changed files with 134 additions and 187 deletions

View File

@ -290,7 +290,10 @@ screen_redraw_make_pane_status(struct client *c, struct window *w,
format_defaults(ft, c, NULL, NULL, wp);
expanded = format_expand_time(ft, fmt);
wp->status_size = width = wp->sx - 4;
if (wp->sx < 4)
wp->status_size = width = 0;
else
wp->status_size = width = wp->sx - 4;
memcpy(&old, &wp->status_screen, sizeof old);
screen_init(&wp->status_screen, width, 1, 0);