1
0

Fix wrong findChildren logic skipping over siblings

This commit is contained in:
Stefan Rakel
2023-10-27 12:14:02 +02:00
parent eac03a0592
commit ef4aa8a52a
2 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
tags tags
test.md

View File

@@ -133,10 +133,10 @@ local function findChildren(startCheckbox)
if not skipped then if not skipped then
return children return children
end end
else elseif checkbox.indentation == startCheckbox.indentation then
if checkbox.indentation > startCheckbox.indentation then return children
table.insert(children, checkbox) elseif checkbox.indentation > startCheckbox.indentation then
end table.insert(children, checkbox)
end end
end end
return children return children