mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 04:18:18 +00:00
lsp: even if contents before change is 0 byte, request to server
fix: https://github.com/neovim/neovim/issues/12414
This commit is contained in:
@@ -586,9 +586,7 @@ do
|
|||||||
old_utf16_size)
|
old_utf16_size)
|
||||||
local _ = log.debug() and log.debug("on_lines", bufnr, changedtick, firstline,
|
local _ = log.debug() and log.debug("on_lines", bufnr, changedtick, firstline,
|
||||||
lastline, new_lastline, old_byte_size, old_utf32_size, old_utf16_size, nvim_buf_get_lines(bufnr, firstline, new_lastline, true))
|
lastline, new_lastline, old_byte_size, old_utf32_size, old_utf16_size, nvim_buf_get_lines(bufnr, firstline, new_lastline, true))
|
||||||
if old_byte_size == 0 then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
-- Don't do anything if there are no clients attached.
|
-- Don't do anything if there are no clients attached.
|
||||||
if tbl_isempty(all_buffer_active_clients[bufnr] or {}) then
|
if tbl_isempty(all_buffer_active_clients[bufnr] or {}) then
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user