rename misleading var

This commit is contained in:
Rene Schallner
2021-11-24 00:34:30 +01:00
parent 39c7ba0129
commit 5be94a786e

View File

@@ -420,14 +420,14 @@ CalendarSignDay = function(day, month, year)
end
-- action on enter on a specific day: preview in telescope, stay in calendar on cancel, open note in other window on accept
CalendarAction = function(day, month, year, week, dir)
CalendarAction = function(day, month, year, weekday, dir)
-- lsp
dir = dir
local today = string.format('%04d-%02d-%02d', year, month, day)
local opts = {}
opts.date = today
opts.hdate = daymap[week] .. ', ' .. monthmap[tonumber(month)] .. ' ' .. day .. daysuffix(day) .. ', ' .. year
opts.hdate = daymap[weekday] .. ', ' .. monthmap[tonumber(month)] .. ' ' .. day .. daysuffix(day) .. ', ' .. year
opts.week = 'n/a' -- TODO: calculate the week somehow
opts.month = month
opts.year = year