Fix wrong findChildren logic skipping over siblings
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
tags
|
tags
|
||||||
|
test.md
|
||||||
|
|||||||
@@ -133,12 +133,12 @@ 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
|
||||||
|
elseif checkbox.indentation > startCheckbox.indentation then
|
||||||
table.insert(children, checkbox)
|
table.insert(children, checkbox)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
return children
|
return children
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user