To: vim_dev@googlegroups.com Subject: Patch 8.2.1998 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 call StartTermInPopup() func StartTermInPopup() ! call term_start(['/bin/sh', '-c', 'cat'], #{hidden: v:true})->popup_create(#{highlight: 'Pmenu'}) endfunc call feedkeys("i\") sleep 10m call assert_equal('n', mode()) call feedkeys("\", 'xt') ! sleep 20m ! call feedkeys(":q\", 'xt') delfunc StartTermInPopup iunmap endfunc --- 1259,1272 ---- inoremap call StartTermInPopup() func StartTermInPopup() ! 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 50m delfunc StartTermInPopup iunmap 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 -- Bram@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 ///