Skip to content

Commit 862875e

Browse files
committed
fix: correctly align virtual indent with headings
1 parent 33b1dcd commit 862875e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/orgmode/ui/virtual_indent.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function VirtualIndent:_get_indent_size(line)
3535
local headline_line, _, _ = headline.headline:start()
3636

3737
if headline_line ~= line then
38-
return headline:level()
38+
return headline:level() + 1
3939
end
4040
end
4141

0 commit comments

Comments
 (0)