base: small fix

This commit is contained in:
luke bonham 2014-02-14 18:02:02 +01:00 committed by copycat-killer
parent 377b316f5d
commit 705c3cea9b
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ local function worker(args)
settings() settings()
end end
newtimer(cmd, timeout, update) newtimer(cmd, timeout, base.update)
return setmetatable(base, { __index = base.widget }) return setmetatable(base, { __index = base.widget })
end end

View File

@ -37,7 +37,7 @@ function calendar:show(t_out, inc_offset)
local tims = t_out or 0 local tims = t_out or 0
local f, c_text local f, c_text
local today = tonumber(os.date('%d')) local today = tonumber(os.date('%d'))
local init_t = '/usr/bin/cal --color=never | sed -r -e "s/(^| )( ' local init_t = '/usr/bin/cal | sed -r -e "s/(^| )( '
if offs == 0 if offs == 0
then -- current month showing, today highlighted then -- current month showing, today highlighted