Skip to content

Commit 3736ea6

Browse files
Add category inheritance. Closes #296
1 parent 3cee776 commit 3736ea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/orgmode/parser/section.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function Section:new(data)
4848
section.todo_keyword = { value = '', type = '', node = data.todo_keyword_node }
4949
section.priority = data.priority
5050
section.title = data.title
51-
section.category = data.properties.items.category or data.root.category
51+
section.category = data.properties.items.category or (data.parent and data.parent.category) or data.root.category
5252
section.file = data.root.filename or ''
5353
section.dates = data.dates or {}
5454
section.properties = data.properties

0 commit comments

Comments
 (0)