Merge pull request #280 from LordDot/master
Fix #279 Calendar uses year for today
This commit is contained in:
commit
a808ead3c7
|
@ -142,7 +142,7 @@ local function worker(user_args)
|
||||||
-- highlight only today's day
|
-- highlight only today's day
|
||||||
if flag == 'focus' then
|
if flag == 'focus' then
|
||||||
local today = os.date('*t')
|
local today = os.date('*t')
|
||||||
if today.month ~= date.month then
|
if not (today.month == date.month and today.year == date.year) then
|
||||||
flag = 'normal'
|
flag = 'normal'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue