Merge #15440 close 'shell' :terminal automatically

This commit is contained in:
Justin M. Keyes
2023-08-13 05:23:15 -07:00
committed by GitHub
8 changed files with 55 additions and 22 deletions

View File

@@ -103,12 +103,13 @@ describe('autocmd TermClose', function()
it('reports the correct <abuf>', function()
command('set hidden')
command('set shellcmdflag=EXE')
command('autocmd TermClose * let g:abuf = expand("<abuf>")')
command('edit foo')
command('edit bar')
eq(2, eval('bufnr("%")'))
command('terminal')
command('terminal ls')
retry(nil, nil, function() eq(3, eval('bufnr("%")')) end)
command('buffer 1')