To: vim_dev@googlegroups.com Subject: Patch 8.2.2007 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2007 Problem: Test for insert mode in popup is not reliable. Solution: Wait for the popup to disappear. (Ozaki Kiichi, closes #7321) Files: src/testdir/test_terminal.vim *** ../vim-8.2.2006/src/testdir/test_terminal.vim 2020-11-16 21:10:30.368663593 +0100 --- src/testdir/test_terminal.vim 2020-11-18 12:21:37.229420300 +0100 *************** *** 1266,1272 **** call assert_equal('n', mode()) call feedkeys("\", 'xt') ! sleep 50m delfunc StartTermInPopup iunmap endfunc --- 1266,1272 ---- call assert_equal('n', mode()) call feedkeys("\", 'xt') ! call WaitFor({-> popup_list() == []}) delfunc StartTermInPopup iunmap endfunc *** ../vim-8.2.2006/src/version.c 2020-11-18 12:12:35.171525154 +0100 --- src/version.c 2020-11-18 12:23:20.253143088 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2007, /**/ -- ARTHUR: This new learning amazes me, Sir Bedevere. Explain again how sheep's bladders may be employed to prevent earthquakes. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// 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 ///