fix: unfinished todos count (#2306)

This commit is contained in:
yetone
2025-06-23 14:26:42 +08:00
committed by GitHub
parent b72581b23b
commit 0613b1f307

View File

@@ -822,7 +822,7 @@ function M._stream(opts)
if opts.get_todos then
local todos = opts.get_todos()
unfinished_todos = vim.tbl_filter(
function(todo) return todo.status ~= "done" or todo.status ~= "cancelled" end,
function(todo) return todo.status ~= "done" and todo.status ~= "cancelled" end,
todos
)
end