Skip to content

Commit 89097b5

Browse files
Fix agenda item headline date to use current date value. Closes #372
1 parent 8cc6fa4 commit 89097b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/orgmode/agenda/agenda_item.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ local AgendaItem = {}
2828
---@param index number
2929
function AgendaItem:new(headline_date, headline, date, index)
3030
local opts = {}
31-
opts.headline_date = headline_date:apply_repeater_until(date)
31+
opts.headline_date = headline_date
3232
opts.headline = headline
3333
opts.date = date
3434
opts.index = index or 1
3535
opts.is_valid = false
3636
opts.is_today = date:is_today()
3737
opts.is_same_day = opts.headline_date:is_same(date, 'day')
38-
opts.is_in_date_range = headline_date:is_none() and headline_date:is_in_date_range(date)
38+
opts.is_same_day = headline_date:is_same(date, 'day') or headline_date:repeats_on(date)
3939
opts.date_range_days = headline_date:get_date_range_days()
4040
opts.label = ''
4141
opts.highlights = {}

0 commit comments

Comments
 (0)