diff --git a/lua/neorg/modules/core/qol/todo_items/module.lua b/lua/neorg/modules/core/qol/todo_items/module.lua index d033ef529..4c8b13b17 100644 --- a/lua/neorg/modules/core/qol/todo_items/module.lua +++ b/lua/neorg/modules/core/qol/todo_items/module.lua @@ -386,10 +386,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