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
test.md

View File

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