aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2020-06-11 13:09:05 +0900
committerHirokazu Hata <h.hata.ai.t@gmail.com>2020-06-11 13:09:05 +0900
commite39ec50d73cc5420a567a1678ff254341e17dca8 (patch)
treecd9889e7ec464878b41a51044e3a3633e0ca8cfa
parente78658348d2b14f2366b9baf2f7ceed19184dbb6 (diff)
downloadrneovim-e39ec50d73cc5420a567a1678ff254341e17dca8.tar.gz
rneovim-e39ec50d73cc5420a567a1678ff254341e17dca8.tar.bz2
rneovim-e39ec50d73cc5420a567a1678ff254341e17dca8.zip
lsp: even if contents before change is 0 byte, request to server
fix: https://github.com/neovim/neovim/issues/12414
-rw-r--r--runtime/lua/vim/lsp.lua4
1 files changed, 1 insertions, 3 deletions
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