Mercurial > vim
changeset 22902:1bde09eef44a v8.2.1998
patch 8.2.1998: terminal Cmd test sometimes fails to close popup
Commit: https://github.com/vim/vim/commit/27f4f6baeeb25e1597a7827f4a509ecf2eb8e6e2
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 16 Nov 2020 21:15:03 +0100 |
parents | 6934d2bdee9b |
children | 83cc3b2e7bb6 |
files | src/testdir/test_terminal.vim src/version.c |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -1259,15 +1259,14 @@ func Test_terminal_popup_insert_cmd() inoremap <F3> <Cmd>call StartTermInPopup()<CR> 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\<F3>") sleep 10m call assert_equal('n', mode()) call feedkeys("\<C-D>", 'xt') - sleep 20m - call feedkeys(":q\<CR>", 'xt') + sleep 50m delfunc StartTermInPopup iunmap <F3> endfunc