aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorFolke Lemaitre <folke.lemaitre@gmail.com>2021-06-25 20:45:42 +0200
committerGitHub <noreply@github.com>2021-06-25 11:45:42 -0700
commite680d7d6af4b48680693be9d984cce217e959e1f (patch)
tree61484fdbc504f16aaaee98fc63fa43507b2e69f2 /runtime/lua/vim/lsp/util.lua
parent3b44b21894998048a8855359fa707fb8d45b03c1 (diff)
downloadrneovim-e680d7d6af4b48680693be9d984cce217e959e1f.tar.gz
rneovim-e680d7d6af4b48680693be9d984cce217e959e1f.tar.bz2
rneovim-e680d7d6af4b48680693be9d984cce217e959e1f.zip
fix(lsp): render the last line in stylize_markdown
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 4de0062737..08437063a3 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -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)