fix(views): populate priority field in LineMeta

Problem: Both `category_view` and `priority_view` omitted `priority`
from the `LineMeta` they produced. `apply_extmarks` checks `m.priority`
to decide whether to render the priority icon, so it was always nil,
causing the `[ ]` pending-icon overlay to replace the `[!]` buffer text.

Solution: Add `priority = task.priority` to both LineMeta constructors.
This commit is contained in:
Barrett Ruth 2026-03-06 11:40:06 -05:00
parent 39b54fbc50
commit 90f85ba098

View file

@ -156,6 +156,7 @@ function M.category_view(tasks)
raw_due = task.due,
status = task.status,
category = cat,
priority = task.priority,
overdue = task.status == 'pending' and task.due ~= nil and parse.is_overdue(task.due)
or nil,
recur = task.recur,
@ -207,6 +208,7 @@ function M.priority_view(tasks)
raw_due = task.due,
status = task.status,
category = task.category,
priority = task.priority,
overdue = task.status == 'pending' and task.due ~= nil and parse.is_overdue(task.due) or nil,
show_category = true,
recur = task.recur,