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:
Hirokazu Hata 2020-06-11 13:09:05 +09:00
parent e78658348d
commit e39ec50d73
No known key found for this signature in database
GPG Key ID: 9AA9860369AE0DE2

View File

@ -586,9 +586,7 @@ do
old_utf16_size)
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))
if old_byte_size == 0 then
return
end
-- Don't do anything if there are no clients attached.
if tbl_isempty(all_buffer_active_clients[bufnr] or {}) then
return