aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/handlers.lua
diff options
context:
space:
mode:
authorelianiva <dicha.arkana03@gmail.com>2021-11-07 05:05:52 +0700
committerGitHub <noreply@github.com>2021-11-06 15:05:52 -0700
commitb74916cfd21fc307ad4898a519e1407411a01ba5 (patch)
treed05586f38e11929cafa277ac55696049b4439a45 /runtime/lua/vim/lsp/handlers.lua
parent77c54fc99558e2cd46051095988e753f4373c7a9 (diff)
downloadrneovim-b74916cfd21fc307ad4898a519e1407411a01ba5.tar.gz
rneovim-b74916cfd21fc307ad4898a519e1407411a01ba5.tar.bz2
rneovim-b74916cfd21fc307ad4898a519e1407411a01ba5.zip
fix(lsp): convert range to byte index before highlighting (#16218)
Co-authored-by: Mathias Fußenegger <mfussenegger@users.noreply.github.com> Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com>
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r--runtime/lua/vim/lsp/handlers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua
index 01d7102e8f..957bee0221 100644
--- a/runtime/lua/vim/lsp/handlers.lua
+++ b/runtime/lua/vim/lsp/handlers.lua
@@ -349,7 +349,7 @@ M['textDocument/signatureHelp'] = M.signature_help
--see: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_documentHighlight
M['textDocument/documentHighlight'] = function(_, result, ctx, _)
if not result then return end
- util.buf_highlight_references(ctx.bufnr, result)
+ util.buf_highlight_references(ctx.bufnr, result, ctx.client_id)
end
---@private