1
0
mirror of https://github.com/tmux/tmux.git synced 2025-03-27 00:18:49 +00:00

Do not count client if no window.

This commit is contained in:
Nicholas Marriott 2021-04-23 13:41:49 +01:00
parent 7a6446ac17
commit cb9a0627f0

View File

@ -136,7 +136,7 @@ clients_calculate_size(int type, int current, struct client *c,
* For latest, count the number of clients with this window. We only
* care if there is more than one.
*/
if (type == WINDOW_SIZE_LATEST)
if (type == WINDOW_SIZE_LATEST && w != NULL)
n = clients_with_window(w);
/* Loop over the clients and work out the size. */