# HG changeset patch # User Bram Moolenaar # Date 1605557703 -3600 # Node ID 1bde09eef44abc678b4246edb4fec4a7610672d0 # Parent 6934d2bdee9b88f1bb98e4c2989b4c50e6820e8c patch 8.2.1998: terminal Cmd test sometimes fails to close popup Commit: https://github.com/vim/vim/commit/27f4f6baeeb25e1597a7827f4a509ecf2eb8e6e2 Author: Bram Moolenaar Date: Mon Nov 16 21:02:28 2020 +0100 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 --- 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 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1998, +/**/ 1997, /**/ 1996,