From 16ceea1aaf7cb443be82d36fddb98c2e72248d33 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Fri, 4 Oct 2019 00:25:10 +0200 Subject: [PATCH] Fix message --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 542eff9..0c430e2 100644 --- a/init.lua +++ b/init.lua @@ -724,11 +724,11 @@ local function get_itemdef_fs(fs, L) typestr = ESC(S("Tool")) end - local groupstr = "" + local groupstr for k, v in pairs(def.groups or {}) do - groupstr = groupstr .. fmt("%s(%d), ", pretty_wrap(k, 13), v) + groupstr = (groupstr or "") .. fmt("%s(%d), ", pretty_wrap(k, 13), v) end - groupstr = sub(groupstr, 1, -3) + groupstr = groupstr and sub(groupstr, 1, -3) local specs = { ESC(S("Name")),