From: Luke Bonham Date: Tue, 19 May 2015 12:12:00 +0000 (+0200) Subject: Merge branch 'master' of https://github.com/copycat-killer/lain X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/3a448b23d556bfddf25d53cf139a57a174446c5a?hp=a148f0674c40f208c17d44755b10445e17a32be6 Merge branch 'master' of https://github.com/copycat-killer/lain --- diff --git a/layout/uselesstile.lua b/layout/uselesstile.lua index bd365a8..877fad1 100644 --- a/layout/uselesstile.lua +++ b/layout/uselesstile.lua @@ -179,6 +179,8 @@ local function tile(p, orientation) -- get column number for other windows local ncol = math.min(tag.getncol(t), #cls_other) + if ncol == 0 then ncol = 1 end + -- split other windows to column groups local last_small_column = ncol - #cls_other % ncol local rows_min = math.floor(#cls_other / ncol)