This commit is contained in:
Luke Bonham 2015-05-19 14:11:36 +02:00
parent 161abc46ab
commit aaf1142688
1 changed files with 2 additions and 0 deletions

View File

@ -179,6 +179,8 @@ local function tile(p, orientation)
-- get column number for other windows -- get column number for other windows
local ncol = math.min(tag.getncol(t), #cls_other) local ncol = math.min(tag.getncol(t), #cls_other)
if ncol == 0 then ncol = 1 end
-- split other windows to column groups -- split other windows to column groups
local last_small_column = ncol - #cls_other % ncol local last_small_column = ncol - #cls_other % ncol
local rows_min = math.floor(#cls_other / ncol) local rows_min = math.floor(#cls_other / ncol)