Skip to content

Commit f88734b

Browse files
authored
fix: todo state in notifications (#1005)
1 parent b6d14eb commit f88734b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/orgmode/notifications/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function Notifications:notify(time)
5353
for _, task in ipairs(tasks) do
5454
utils.concat(result, {
5555
string.format('# %s (%s)', task.category, task.humanized_duration),
56-
string.format('%s %s %s', string.rep('*', task.level), task.todo, task.title),
56+
string.format('%s %s %s', string.rep('*', task.level), task.todo or '', task.title),
5757
string.format('%s: <%s>', task.type, task.time:to_string()),
5858
})
5959
end
@@ -77,7 +77,7 @@ end
7777
function Notifications:_cron_notifier(tasks)
7878
for _, task in ipairs(tasks) do
7979
local title = string.format('%s (%s)', task.category, task.humanized_duration)
80-
local subtitle = string.format('%s %s %s', string.rep('*', task.level), task.todo, task.title)
80+
local subtitle = string.format('%s %s %s', string.rep('*', task.level), task.todo or '', task.title)
8181
local date = string.format('%s: %s', task.type, task.time:to_string())
8282

8383
if vim.fn.executable('notify-send') == 1 then

0 commit comments

Comments
 (0)