Skip to content

Commit 97a80e4

Browse files
committed
patch 8.0.1015: missing update to terminal test
Problem: Missing update to terminal test. Solution: Add the changes to the test.
1 parent b47a259 commit 97a80e4

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/testdir/test_terminal.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ endfunc
8484

8585
func 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))

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
1015,
772774
/**/
773775
1014,
774776
/**/

0 commit comments

Comments
 (0)