diff options
author | jimman2003 <jim41825@gmail.com> | 2021-06-26 20:43:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-26 13:43:18 -0400 |
commit | bdf3df4027a5389a46b4c9a75b50aff5c0ecb351 (patch) | |
tree | e69c6a7fcd654d03085f993da28f3bba5eaf4f0f /runtime/lua/vim/lsp/util.lua | |
parent | bb4fc69e93d45e539057e62e71a818e5fce0b378 (diff) | |
download | rneovim-bdf3df4027a5389a46b4c9a75b50aff5c0ecb351.tar.gz rneovim-bdf3df4027a5389a46b4c9a75b50aff5c0ecb351.tar.bz2 rneovim-bdf3df4027a5389a46b4c9a75b50aff5c0ecb351.zip |
Fixed +1 -1 in util.lua (#14913)
No point in adding and then subtracting I believe ;)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 08437063a3..195e3a0e65 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -1153,7 +1153,7 @@ function M.stylize_markdown(bufnr, contents, opts) table.insert(highlights, { ft = match.ft; start = start + 1; - finish = #stripped + 1 - 1; + finish = #stripped; }) else table.insert(stripped, line) |