From 76e330d981b4623233c2cee63887e94f7be24029 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 7 Jul 2012 10:21:40 +0200 Subject: [PATCH] widget: use empty string instead of nil when no widget is wanted --- rc/widgets.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/widgets.lua b/rc/widgets.lua index fc9906f..c1a8e07 100644 --- a/rc/widgets.lua +++ b/rc/widgets.lua @@ -112,11 +112,11 @@ for s = 1, screen.count() do -- Add widgets to the wibox local onfirst = function(what) if s == 1 then return what end - return nil + return "" end local onsecond = function(what) if s == 2 or screen.count() == 1 then return what end - return nil + return "" end wibox[s].widgets = {