test(terminal): status is -1 in TermClose if buffer is deleted (#37609)

This commit is contained in:
zeertzjq
2026-01-29 16:29:49 +08:00
committed by GitHub
parent 4e4e1b09d3
commit 484f455402
4 changed files with 12 additions and 5 deletions

View File

@@ -89,11 +89,10 @@ describe(':terminal buffer', function()
end)
it('does not create swap files', function()
local swapfile = api.nvim_exec('swapname', true):gsub('\n', '')
eq(nil, io.open(swapfile))
eq('No swap file', n.exec_capture('swapname'))
end)
it('does not create undofiles files', function()
it('does not create undo files', function()
local undofile = api.nvim_eval('undofile(bufname("%"))')
eq(nil, io.open(undofile))
end)