From aaf1142688933bc5673d4b8309886db2a178ce90 Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Tue, 19 May 2015 14:11:36 +0200 Subject: [PATCH] #109: catch n%0 --- layout/uselesstile.lua | 2 ++ 1 file changed, 2 insertions(+) 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)