aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-11-10 14:46:14 +0100
committerGitHub <noreply@github.com>2019-11-10 14:46:14 +0100
commit3a075ce3dc97926f5aabc027b77a80c26c65de61 (patch)
tree7c3563d5feb002bc79d8c92a09cc7eed50572d18 /runtime/lua/vim
parentece3d19b026b80c933e650c4422f8b1a4ab4bde9 (diff)
parent474d0bcbf724c7eed740f60391a0ed35d651e1d3 (diff)
downloadrneovim-3a075ce3dc97926f5aabc027b77a80c26c65de61.tar.gz
rneovim-3a075ce3dc97926f5aabc027b77a80c26c65de61.tar.bz2
rneovim-3a075ce3dc97926f5aabc027b77a80c26c65de61.zip
Merge pull request #11310 from bfredl/luarpc
lua: add vim.rpcrequest, vim.rpcnotify and vim.NIL
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/inspect.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/inspect.lua b/runtime/lua/vim/inspect.lua
index 7cb40ca64d..0f3b908dc1 100644
--- a/runtime/lua/vim/inspect.lua
+++ b/runtime/lua/vim/inspect.lua
@@ -289,7 +289,7 @@ function Inspector:putValue(v)
if tv == 'string' then
self:puts(smartQuote(escape(v)))
elseif tv == 'number' or tv == 'boolean' or tv == 'nil' or
- tv == 'cdata' or tv == 'ctype' then
+ tv == 'cdata' or tv == 'ctype' or (vim and v == vim.NIL) then
self:puts(tostring(v))
elseif tv == 'table' then
self:putTable(v)