Fix `attempt to concatenate a nil value`
Stumbled over this with termite: New termite windows seem to lack a name.
This commit is contained in:
parent
a3996c95e0
commit
0409b4e068
|
@ -181,7 +181,7 @@ function module.create(name, editor)
|
|||
local lu = nil
|
||||
local rd = nil
|
||||
if not skip then
|
||||
log(DEBUG, "Compute regions for " .. c.name or ("<untitled:" .. tostring(c) .. ">"))
|
||||
log(DEBUG, "Compute regions for " .. (c.name or ("<untitled:" .. tostring(c) .. ">")))
|
||||
lu = find_lu(c, regions)
|
||||
if lu ~= nil then
|
||||
c.x = regions[lu].x
|
||||
|
@ -209,7 +209,7 @@ function module.create(name, editor)
|
|||
regions[c.machi_region].height - c.border_width * 2 == c.height
|
||||
then
|
||||
else
|
||||
log(DEBUG, "Compute regions for " .. c.name or ("<untitled:" .. tostring(c) .. ">"))
|
||||
log(DEBUG, "Compute regions for " .. (c.name or ("<untitled:" .. tostring(c) .. ">")))
|
||||
local region = find_region(c, regions)
|
||||
c.machi_region = region
|
||||
p.geometries[c] = {}
|
||||
|
|
Loading…
Reference in New Issue