Skip to content

Commit 7fac198

Browse files
committed
fix: stop wrapped bullets at plain text
1 parent 96a9dfe commit 7fac198

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎lua/bullets/actions.lua‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ local function wrapped_owner(lnum, line)
288288
if previous_bullet and current_indent >= prefix_width(previous_bullet) then
289289
return previous_bullet
290290
end
291+
if not previous_bullet and #(previous_line:match("^%s*") or "") < current_indent then
292+
return nil
293+
end
291294
end
292295

293296
return nil

0 commit comments

Comments
 (0)