aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorJose Alvarez <j.alvarez11@icloud.com>2022-05-03 08:54:49 -0400
committerGitHub <noreply@github.com>2022-05-03 08:54:49 -0400
commitb5c15ba7e5266bdd742a835d82525d4625980d4d (patch)
treeee818913d7421ab15acc00d2ca007427d27c5ee2 /runtime/lua/vim/lsp/util.lua
parent20aaa59fb3bcd8e47e770db8666e416c23ad9e88 (diff)
downloadrneovim-b5c15ba7e5266bdd742a835d82525d4625980d4d.tar.gz
rneovim-b5c15ba7e5266bdd742a835d82525d4625980d4d.tar.bz2
rneovim-b5c15ba7e5266bdd742a835d82525d4625980d4d.zip
fix(lsp): add missing bufnr argument (#18382)
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 77ab1d4224..72dfb3cd76 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -456,7 +456,7 @@ function M.apply_text_edits(text_edits, bufnr, offset_encoding)
-- Remove final line if needed
local fix_eol = has_eol_text_edit
- fix_eol = fix_eol and (api.nvim_buf_get_option(bufnr, 'eol') or (api.nvim_buf_get_option(bufnr, 'fixeol') and not api.nvim_buf_get_option('binary')))
+ fix_eol = fix_eol and (api.nvim_buf_get_option(bufnr, 'eol') or (api.nvim_buf_get_option(bufnr, 'fixeol') and not api.nvim_buf_get_option(bufnr, 'binary')))
fix_eol = fix_eol and get_line(bufnr, max - 1) == ''
if fix_eol then
vim.api.nvim_buf_set_lines(bufnr, -2, -1, false, {})