From: Bram Moolenaar Date: Mon, 16 Nov 2020 20:02:28 +0000 (+0100) Subject: patch 8.2.1998: terminal Cmd test sometimes fails to close popup X-Git-Tag: v8.2.1998 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27f4f6baeeb25e1597a7827f4a509ecf2eb8e6e2;p=vim patch 8.2.1998: terminal Cmd test sometimes fails to close popup Problem: Terminal Cmd test sometimes fails to close popup. Solution: Add "term_finish" option. --- diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index 735164780..846ec5986 100644 --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -1259,15 +1259,14 @@ func Test_terminal_popup_insert_cmd() inoremap call StartTermInPopup() func StartTermInPopup() - call term_start(['/bin/sh', '-c', 'cat'], #{hidden: v:true})->popup_create(#{highlight: 'Pmenu'}) + call term_start(['/bin/sh', '-c', 'cat'], #{hidden: v:true, term_finish: 'close'})->popup_create(#{highlight: 'Pmenu'}) endfunc call feedkeys("i\") sleep 10m call assert_equal('n', mode()) call feedkeys("\", 'xt') - sleep 20m - call feedkeys(":q\", 'xt') + sleep 50m delfunc StartTermInPopup iunmap endfunc diff --git a/src/version.c b/src/version.c index 0e9973e09..186bbdea6 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1998, /**/ 1997, /**/