diff --git a/lua/checkbox.lua b/lua/checkbox.lua index 63080bf..9abec62 100644 --- a/lua/checkbox.lua +++ b/lua/checkbox.lua @@ -133,7 +133,7 @@ local function findChildren(startCheckbox) if not skipped then return children end - elseif checkbox.indentation == startCheckbox.indentation then + elseif checkbox.indentation <= startCheckbox.indentation then return children elseif checkbox.indentation > startCheckbox.indentation then table.insert(children, checkbox)