From cd92ad32ce00c40f01c1bc2ef5d0caddacc99754 Mon Sep 17 00:00:00 2001 From: Stefan Rakel Date: Fri, 27 Oct 2023 12:16:03 +0200 Subject: [PATCH] Also ignore less indented siblings for find children --- lua/checkbox.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)