mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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("%")'))
|
eq('scripts/shadacat.py', eval('bufname("%")'))
|
||||||
end)
|
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)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user