mirror of
https://github.com/tmux/tmux.git
synced 2026-02-15 10:39:25 +00:00
Fix clients_calculate_size for manual type when window is NULL. From
Elias Oenal in GitHub issue 4849.
This commit is contained in:
2
resize.c
2
resize.c
@@ -250,7 +250,7 @@ skip:
|
|||||||
/* Return whether a suitable size was found. */
|
/* Return whether a suitable size was found. */
|
||||||
if (type == WINDOW_SIZE_MANUAL) {
|
if (type == WINDOW_SIZE_MANUAL) {
|
||||||
log_debug("%s: type is manual", __func__);
|
log_debug("%s: type is manual", __func__);
|
||||||
return (1);
|
return (w != NULL);
|
||||||
}
|
}
|
||||||
if (type == WINDOW_SIZE_LARGEST) {
|
if (type == WINDOW_SIZE_LARGEST) {
|
||||||
log_debug("%s: type is largest", __func__);
|
log_debug("%s: type is largest", __func__);
|
||||||
|
|||||||
Reference in New Issue
Block a user