fix(lua): vim._with() doesn't save boolean options properly (#37354)

Problem:  vim._with() doesn't save boolean options with false values
          properly.
Solution: Use vim.F.if_nil().
This commit is contained in:
zeertzjq
2026-01-11 20:04:32 +08:00
committed by GitHub
parent cd0d26daf9
commit 94144d4678
4 changed files with 117 additions and 38 deletions

View File

@@ -396,7 +396,7 @@ describe('server -> client', function()
eq({}, api.nvim_get_chan_info(id)) -- Channel is closed.
end)
it('response works with channel closed just after response', function()
it('response works with channel closed just after response #24214', function()
local id = start_server_and_client()
eq(
'RESPONSE',