fix: unfinished todos count (#2306)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user