Fix thinko in 'window_set_parent_and_normal_sizes'

* src/window.c (window_set_parent_and_normal_sizes): When
assigning normal sizes in a combination, take the direction from
its parent's 'horizontal' slot and not from that of the first
window in the combination.
This commit is contained in:
Martin Rudalics
2025-11-22 10:12:37 +01:00
parent 32fc382e9e
commit b728f50e1f

View File

@@ -5161,7 +5161,7 @@ window_set_parent_and_normal_sizes (Lisp_Object parent)
/* Normal size left for yet unprocessed windows. */
double remainder = 1.0;
if (w->horizontal)
if (p->horizontal)
{
while (true)
{