mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-03 17:24:29 +00:00 
			
		
		
		
	tests: ex_terminal_spec: add test for previous leak (#10450)
Closes https://github.com/neovim/neovim/pull/4766.
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user