Return nil instead of NIL for vim.env (#11486)

This commit is contained in:
Ashkan Kiani
2019-12-01 05:04:57 -08:00
committed by GitHub
parent a17ccb0d24
commit edca84cfc9
2 changed files with 9 additions and 2 deletions

View File

@@ -569,7 +569,7 @@ describe('lua stdlib', function()
vim.fn.setenv("A", 123)
]]
eq('123', funcs.luaeval "vim.env.A")
eq(NIL, funcs.luaeval "vim.env.B")
eq(true, funcs.luaeval "vim.env.B == nil")
end)
it('vim.v', function()