X.L.MultiColumns NWin shrinkning fix

Fixed a bug where the list containing the number of windows in each column was allowed the shrink if a column was unused.
This commit is contained in:
Anders Engstrom 2009-10-27 00:59:32 +00:00
parent 95bada8d02
commit 3fd77f5386

View File

@ -82,7 +82,7 @@ instance LayoutClass MultiCol a where
wlen = length w wlen = length w
-- Make sure the list of columns is big enough and update active column -- Make sure the list of columns is big enough and update active column
nw = multiColNWin l ++ repeat (multiColDefWin l) nw = multiColNWin l ++ repeat (multiColDefWin l)
l' = l { multiColNWin = take (getCol (wlen-1) nw + 1) nw l' = l { multiColNWin = take (max (length $ multiColNWin l) $ getCol (wlen-1) nw + 1) nw
, multiColActive = getCol (length $ W.up s) (multiColNWin l) , multiColActive = getCol (length $ W.up s) (multiColNWin l)
} }
-- Only return new layout if it has been modified -- Only return new layout if it has been modified