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:
Hirokazu Hata 2020-06-15 11:11:42 +09:00 committed by GitHub
commit 6613ab6bca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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