forked from aniani/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.
This commit is contained in:
@@ -1259,15 +1259,14 @@ func Test_terminal_popup_insert_cmd()
|
|||||||
|
|
||||||
inoremap <F3> <Cmd>call StartTermInPopup()<CR>
|
inoremap <F3> <Cmd>call StartTermInPopup()<CR>
|
||||||
func 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
|
endfunc
|
||||||
call feedkeys("i\<F3>")
|
call feedkeys("i\<F3>")
|
||||||
sleep 10m
|
sleep 10m
|
||||||
call assert_equal('n', mode())
|
call assert_equal('n', mode())
|
||||||
|
|
||||||
call feedkeys("\<C-D>", 'xt')
|
call feedkeys("\<C-D>", 'xt')
|
||||||
sleep 20m
|
sleep 50m
|
||||||
call feedkeys(":q\<CR>", 'xt')
|
|
||||||
delfunc StartTermInPopup
|
delfunc StartTermInPopup
|
||||||
iunmap <F3>
|
iunmap <F3>
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1998,
|
||||||
/**/
|
/**/
|
||||||
1997,
|
1997,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user