Patch 8.2.1998
Problem: Terminal Cmd test sometimes fails to close popup.
Solution: Add "term_finish" option.
Files: src/testdir/test_terminal.vim
*** ../vim-8.2.1997/src/testdir/test_terminal.vim 2020-11-16 20:47:27.627516302 +0100
--- src/testdir/test_terminal.vim 2020-11-16 21:00:14.394053991 +0100
***************
*** 1259,1273 ****
inoremap <F3> <Cmd>call StartTermInPopup()<CR>
func StartTermInPopup()
! call term_start(['/bin/sh', '-c', 'cat'], #{hidden: v:true})->popup_create(#{highlight: 'Pmenu'})
endfunc
call feedkeys("i\<F3>")
sleep 10m
call assert_equal('n', mode())
call feedkeys("\<C-D>", 'xt')
! sleep 20m
! call feedkeys(":q\<CR>", 'xt')
delfunc StartTermInPopup
iunmap <F3>
endfunc
--- 1259,1272 ----
inoremap <F3> <Cmd>call StartTermInPopup()<CR>
func StartTermInPopup()
! call term_start(['/bin/sh', '-c', 'cat'], #{hidden: v:true, term_finish: 'close'})->popup_create(#{highlight: 'Pmenu'})
endfunc
call feedkeys("i\<F3>")
sleep 10m
call assert_equal('n', mode())
call feedkeys("\<C-D>", 'xt')
! sleep 50m
delfunc StartTermInPopup
iunmap <F3>
endfunc
*** ../vim-8.2.1997/src/version.c 2020-11-16 20:47:27.627516302 +0100
--- src/version.c 2020-11-16 21:01:34.185893765 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 1998,
/**/
--
Place mark here ->[ ]<- if you want a dirty monitor.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///