mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #12469 from h-michael/request
lsp: even if contents before change is 0 byte, request to server
This commit is contained in:
commit
6613ab6bca
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user