Skip to content

Commit

Permalink
fix(todo_items): don't look at child if parent is todo (#909)
Browse files Browse the repository at this point in the history
Fixes #893
  • Loading branch information
champignoom committed May 30, 2023
1 parent ca98238 commit 8e3bcb2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lua/neorg/modules/core/qol/todo_items/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,12 @@ module.public = {
local next = types[index] or types[1]
for child in todo_item_at_cursor:iter_children() do
if module.public.get_todo_item_type(child) then
next = alternative_types[get_index(alternative_types, todo_item_type)]
break
if not next then
for child in todo_item_at_cursor:iter_children() do
if module.public.get_todo_item_type(child) then
next = alternative_types[get_index(alternative_types, todo_item_type)]
break
end
end
end
Expand Down

0 comments on commit 8e3bcb2

Please sign in to comment.