diff options
author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-06-15 11:11:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 11:11:42 +0900 |
commit | 6613ab6bca0bd866d96e806e9f4dd8c0c05f3575 (patch) | |
tree | aa62a5cfbebfa4d901141630bf84595ec2b96bba /runtime/lua/vim | |
parent | 8daefe2f04a23a9b857e5872d998cac34aaebb5d (diff) | |
parent | e39ec50d73cc5420a567a1678ff254341e17dca8 (diff) | |
download | rneovim-6613ab6bca0bd866d96e806e9f4dd8c0c05f3575.tar.gz rneovim-6613ab6bca0bd866d96e806e9f4dd8c0c05f3575.tar.bz2 rneovim-6613ab6bca0bd866d96e806e9f4dd8c0c05f3575.zip |
Merge pull request #12469 from h-michael/request
lsp: even if contents before change is 0 byte, request to server
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 4 |
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 |