Skip to content

Commit cc2807c

Browse files
authored
fix: ctermbg heading borders being all white instead of as configured (#546)
1 parent bfd67f1 commit cc2807c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lua/render-markdown/core/colors.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ function M.bg_as_fg(highlight, force)
127127
fg = hl.bg,
128128
ctermfg = hl.ctermbg,
129129
})
130-
M.cache.bg_as_fg[name] = { hl = highlight, visible = hl.bg ~= nil }
130+
M.cache.bg_as_fg[name] = {
131+
hl = highlight,
132+
visible = hl.bg ~= nil or hl.ctermbg ~= nil,
133+
}
131134
end
132135
return M.cache.bg_as_fg[name].visible and name or nil
133136
end

0 commit comments

Comments
 (0)