mirror of
https://github.com/neovim/neovim.git
synced 2025-11-09 12:05:14 +00:00
fix(lsp): render the last line in stylize_markdown
This commit is contained in:
@@ -1237,7 +1237,7 @@ function M.stylize_markdown(bufnr, contents, opts)
|
|||||||
apply_syntax_to_region(h.ft, h.start, h.finish)
|
apply_syntax_to_region(h.ft, h.start, h.finish)
|
||||||
last = h.finish + 1
|
last = h.finish + 1
|
||||||
end
|
end
|
||||||
if last < #stripped then
|
if last <= #stripped then
|
||||||
apply_syntax_to_region("lsp_markdown", last, #stripped)
|
apply_syntax_to_region("lsp_markdown", last, #stripped)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user