fix(lsp): render the last line in stylize_markdown

This commit is contained in:
Folke Lemaitre
2021-06-25 20:45:42 +02:00
committed by GitHub
parent 3b44b21894
commit e680d7d6af

View File

@@ -1237,7 +1237,7 @@ function M.stylize_markdown(bufnr, contents, opts)
apply_syntax_to_region(h.ft, h.start, h.finish)
last = h.finish + 1
end
if last < #stripped then
if last <= #stripped then
apply_syntax_to_region("lsp_markdown", last, #stripped)
end
end)