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:
Simon Siegler 2019-10-10 15:09:10 +02:00 committed by GitHub
parent a3996c95e0
commit 0409b4e068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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] = {}