aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2022-01-03 21:03:16 -0500
committerGitHub <noreply@github.com>2022-01-03 21:03:16 -0500
commit207307d0faf9b821cfd3cfeae4d027ab9ee5dbdb (patch)
treef85b18ba46b7cce6984a3d51b609e4d4c99cf696 /runtime/lua/vim/lsp.lua
parentefe6485aca62c13045ef269ce0c218bce4a7e864 (diff)
downloadrneovim-207307d0faf9b821cfd3cfeae4d027ab9ee5dbdb.tar.gz
rneovim-207307d0faf9b821cfd3cfeae4d027ab9ee5dbdb.tar.bz2
rneovim-207307d0faf9b821cfd3cfeae4d027ab9ee5dbdb.zip
fix(lsp): explicitly pass bufnr in didSave handler (#16906)
Addresses a regression introduced by the stricter type checking in lua api functions from https://github.com/neovim/neovim/pull/16745
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r--runtime/lua/vim/lsp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua
index 8bb9960a1b..cfbabb12a6 100644
--- a/runtime/lua/vim/lsp.lua
+++ b/runtime/lua/vim/lsp.lua
@@ -1131,7 +1131,7 @@ function lsp._text_document_did_save_handler(bufnr)
if client.resolved_capabilities.text_document_save then
local included_text
if client.resolved_capabilities.text_document_save_include_text then
- included_text = text()
+ included_text = text(bufnr)
end
client.notify('textDocument/didSave', {
textDocument = {