tests: ex_terminal_spec: add test for previous leak (#10450)
Closes https://github.com/neovim/neovim/pull/4766.
This commit is contained in:
parent
44e150bd46
commit
c07f266c5b
|
@ -261,4 +261,14 @@ describe(':terminal (with fake shell)', function()
|
|||
eq('scripts/shadacat.py', eval('bufname("%")'))
|
||||
end)
|
||||
|
||||
it('with bufhidden=delete #3958', function()
|
||||
command('set hidden')
|
||||
eq(1, eval('&hidden'))
|
||||
command('autocmd BufNew * setlocal bufhidden=delete')
|
||||
for _ = 1, 5 do
|
||||
source([[
|
||||
execute 'edit '.reltimestr(reltime())
|
||||
terminal]])
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
|
Loading…
Reference in New Issue