aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/rpc.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-04-30 11:37:47 -0700
committerGitHub <noreply@github.com>2021-04-30 11:37:47 -0700
commit0150cc41604ebb1b5b5f6920cf4673e541684e75 (patch)
treefdbf26a589abf55abf7c57c3aea9f7f629dbd07c /runtime/lua/vim/lsp/rpc.lua
parent388a834a07e07509c44a5c257dc397b331b0cb39 (diff)
parent69d4143e7baab15bb02ad8e4b48511a41cfdcd95 (diff)
downloadrneovim-0150cc41604ebb1b5b5f6920cf4673e541684e75.tar.gz
rneovim-0150cc41604ebb1b5b5f6920cf4673e541684e75.tar.bz2
rneovim-0150cc41604ebb1b5b5f6920cf4673e541684e75.zip
Merge pull request #14463 from mfussenegger/decoded-result-false
lsp: Allow decoded.result to be `false`
Diffstat (limited to 'runtime/lua/vim/lsp/rpc.lua')
-rw-r--r--runtime/lua/vim/lsp/rpc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/rpc.lua b/runtime/lua/vim/lsp/rpc.lua
index 1aa8326514..0cabd1a0d4 100644
--- a/runtime/lua/vim/lsp/rpc.lua
+++ b/runtime/lua/vim/lsp/rpc.lua
@@ -518,7 +518,7 @@ local function start(cmd, cmd_args, dispatchers, extra_spawn_params)
send_response(decoded.id, err, result)
end)
-- This works because we are expecting vim.NIL here
- elseif decoded.id and (decoded.result or decoded.error) then
+ elseif decoded.id and (decoded.result ~= vim.NIL or decoded.error ~= vim.NIL) then
-- Server Result
decoded.error = convert_NIL(decoded.error)
decoded.result = convert_NIL(decoded.result)