[xmonad] darcs patch: fix a divide by zero error in Grid
Roman Cheplyaka
roma at ro-che.info
Sun Oct 5 13:18:03 EDT 2008
* daniel at wagner-home.com <daniel at wagner-home.com> [2008-09-26 16:42:06-0400]
> Fri Sep 26 16:41:48 EDT 2008 daniel at wagner-home.com
> * fix a divide by zero error in Grid
> - mincs = nwins `div` ncols
> + mincs = max 1 $ nwins `div` ncols
I don't have a clue how this prevents a division by zero.
Maybe you meant "mincs = nwins `div` (max 1 ncols)" ?
--
Roman I. Cheplyaka (aka Feuerbach @ IRC)
More information about the xmonad
mailing list