tests: ex_terminal_spec: add test for previous leak (#10450)

Closes https://github.com/neovim/neovim/pull/4766.
This commit is contained in:
Daniel Hahler 2019-07-08 18:42:52 +02:00 committed by GitHub
parent 44e150bd46
commit c07f266c5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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)