From 90f85ba0989d04a99ae4a7bf9f4705f49b8da8d1 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 6 Mar 2026 11:40:06 -0500 Subject: [PATCH] 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. --- lua/pending/views.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/pending/views.lua b/lua/pending/views.lua index 87fcee1..3b67f90 100644 --- a/lua/pending/views.lua +++ b/lua/pending/views.lua @@ -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,