From 046991e4d5c6bc25ee11bbe28f0b685f00cf1d3d Mon Sep 17 00:00:00 2001 From: Mathias Fussenegger Date: Wed, 14 Apr 2021 21:42:03 +0200 Subject: 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. --- runtime/lua/vim/lsp/util.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'runtime/lua/vim') 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 -- cgit