Fix wrong findChildren logic skipping over siblings
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
tags
|
||||
test.md
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user