mirror of
https://github.com/tmux/tmux.git
synced 2026-01-09 22:30:19 +00:00
Do not set manual size if no window.
This commit is contained in:
2
resize.c
2
resize.c
@@ -127,7 +127,7 @@ clients_calculate_size(int type, int current, struct client *c,
|
||||
if (type == WINDOW_SIZE_LARGEST) {
|
||||
*sx = 0;
|
||||
*sy = 0;
|
||||
} else if (type == WINDOW_SIZE_MANUAL) {
|
||||
} else if (w != NULL && type == WINDOW_SIZE_MANUAL) {
|
||||
*sx = w->manual_sx;
|
||||
*sy = w->manual_sy;
|
||||
log_debug("%s: manual size %ux%u", __func__, *sx, *sy);
|
||||
|
||||
Reference in New Issue
Block a user