Skip to content

Commit 37e9921

Browse files
Fix highlight of custom todo keywords when keyword faces is not defined for it.
1 parent 1f7b6a4 commit 37e9921

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/orgmode/agenda/agenda_item.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function AgendaItem:_add_keyword_highlight()
206206
if self.headline.todo_keyword.value == '' then
207207
return
208208
end
209-
local hlgroup = hl_map[self.headline.todo_keyword.value]
209+
local hlgroup = hl_map[self.headline.todo_keyword.value] or hl_map[self.headline.todo_keyword.type]
210210
if hlgroup then
211211
table.insert(self.highlights, {
212212
hlgroup = hlgroup,

0 commit comments

Comments
 (0)