@@ -84,6 +84,7 @@ endfunc
8484
8585func Test_terminal_hide_buffer ()
8686 let buf = Run_shell_in_terminal ({})
87+ setlocal bufhidden = hide
8788 quit
8889 for nr in range (1 , winnr (' $' ))
8990 call assert_notequal (winbufnr (nr), buf )
@@ -356,13 +357,13 @@ func Test_finish_open_close()
356357 call assert_equal (1 , winnr (' $' ))
357358
358359 exe ' terminal ++open ' . cmd
359- close
360+ close !
360361 call WaitFor (" winnr('$') == 2" , waittime)
361362 call assert_equal (2 , winnr (' $' ))
362363 bwipe
363364
364365 call term_start (cmd, {' term_finish' : ' open' })
365- close
366+ close !
366367 call WaitFor (" winnr('$') == 2" , waittime)
367368 call assert_equal (2 , winnr (' $' ))
368369 bwipe
@@ -385,7 +386,7 @@ func Test_finish_open_close()
385386 call assert_fails (" call term_start(cmd, {'term_opencmd': 'split % and %d'})" , ' E475:' )
386387
387388 call term_start (cmd, {' term_finish' : ' open' , ' term_opencmd' : ' 4split | buffer %d' })
388- close
389+ close !
389390 call WaitFor (" winnr('$') == 2" , waittime)
390391 call assert_equal (2 , winnr (' $' ))
391392 call assert_equal (4 , winheight (0 ))
0 commit comments