From f041fc7d636bbe2cb523a1ae99934839cca934f8 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 1 Feb 2014 15:23:59 +1000 Subject: Terminal resize now does the right thing in boxes. --- boxes.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/boxes.c b/boxes.c index 3c15b21..048c7c8 100644 --- a/boxes.c +++ b/boxes.c @@ -1628,8 +1628,11 @@ static void termSize(long extra, int *params, int count) // TODO - Double check what the maximum F3 variations can be. if ((2 == count) && (8 < r) && (8 < c)) { - // FIXME - The change is not being propogated to everything properly. - sizeViewToBox(rootBox, rootBox->X, rootBox->Y, c, r - 1); + commandLine->Y = r; + commandLine->W = c; + rootBox->W = c; + rootBox->H = r - 1; + sizeViewToBox(rootBox, -1, -1, -1, -1); calcBoxes(rootBox); drawBoxes(rootBox); -- cgit v1.1