diff options
author | Mathias Fussenegger <f.mathias@zignar.net> | 2021-04-14 21:42:03 +0200 |
---|---|---|
committer | Mathias Fussenegger <f.mathias@zignar.net> | 2021-04-14 21:42:03 +0200 |
commit | 046991e4d5c6bc25ee11bbe28f0b685f00cf1d3d (patch) | |
tree | 4be3e72e7c455aeb94ec0eaa0f663d14387f2a6d /runtime/lua/vim/lsp/util.lua | |
parent | b67f689e4cb08ac3f33432038ae9aec81383a9f3 (diff) | |
download | rneovim-046991e4d5c6bc25ee11bbe28f0b685f00cf1d3d.tar.gz rneovim-046991e4d5c6bc25ee11bbe28f0b685f00cf1d3d.tar.bz2 rneovim-046991e4d5c6bc25ee11bbe28f0b685f00cf1d3d.zip |
lsp: Remove vim.NIL handling from apply_text_document_edit
The rpc layer normalizes `vim.NIL` to `nil`, so the scenario tested
should never happen.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 783a35a774..71ec85381b 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -470,7 +470,6 @@ function M.apply_text_document_edit(text_document_edit, index) -- `VersionedTextDocumentIdentifier`s version may be null -- https://microsoft.github.io/language-server-protocol/specification#versionedTextDocumentIdentifier if should_check_version and (text_document.version - and text_document.version ~= vim.NIL and text_document.version > 0 and M.buf_versions[bufnr] and M.buf_versions[bufnr] > text_document.version) then |