mirror of https://github.com/tmux/tmux.git
Do not let the size of the pane status screen go negative.
parent
5943cd1907
commit
e3b1358bbc
|
@ -290,6 +290,9 @@ screen_redraw_make_pane_status(struct client *c, struct window *w,
|
||||||
format_defaults(ft, c, NULL, NULL, wp);
|
format_defaults(ft, c, NULL, NULL, wp);
|
||||||
|
|
||||||
expanded = format_expand_time(ft, fmt);
|
expanded = format_expand_time(ft, fmt);
|
||||||
|
if (wp->sx < 4)
|
||||||
|
wp->status_size = width = 0;
|
||||||
|
else
|
||||||
wp->status_size = width = wp->sx - 4;
|
wp->status_size = width = wp->sx - 4;
|
||||||
|
|
||||||
memcpy(&old, &wp->status_screen, sizeof old);
|
memcpy(&old, &wp->status_screen, sizeof old);
|
||||||
|
|
Loading…
Reference in New Issue