From e39ec50d73cc5420a567a1678ff254341e17dca8 Mon Sep 17 00:00:00 2001 From: Hirokazu Hata Date: Thu, 11 Jun 2020 13:09:05 +0900 Subject: lsp: even if contents before change is 0 byte, request to server fix: https://github.com/neovim/neovim/issues/12414 --- runtime/lua/vim/lsp.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 2fbc51481f..e759511347 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -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 -- cgit