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 -- [email protected] -- 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 ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202011162002.0AGK2v8a1255340%40masaka.moolenaar.net.