To: vim_dev@googlegroups.com Subject: Patch 8.2.1139 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1139 (after 8.2.1137) Problem: Vim9: test for silent echo fails in some environments. Solution: Use :function instead of :def. Files: src/testdir/test_vim9_func.vim *** ../vim-8.2.1138/src/testdir/test_vim9_func.vim 2020-07-05 18:41:05.171877168 +0200 --- src/testdir/test_vim9_func.vim 2020-07-05 18:46:42.842302742 +0200 *************** *** 920,926 **** assert_equal('full', Line_continuation_in_def('.')) enddef ! def Test_silent_echo() CheckScreendump let lines =<< trim END --- 920,926 ---- assert_equal('full', Line_continuation_in_def('.')) enddef ! func Test_silent_echo() CheckScreendump let lines =<< trim END *************** *** 930,946 **** enddef defcompile END ! writefile(lines, 'XTest_silent_echo') " Check that the balloon shows up after a mouse move let buf = RunVimInTerminal('-S XTest_silent_echo', {'rows': 6}) ! term_sendkeys(buf, ":abc") call VerifyScreenDump(buf, 'Test_vim9_silent_echo', {}) " clean up call StopVimInTerminal(buf) call delete('XTest_silent_echo') ! enddef " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker --- 930,946 ---- enddef defcompile END ! call writefile(lines, 'XTest_silent_echo') " Check that the balloon shows up after a mouse move let buf = RunVimInTerminal('-S XTest_silent_echo', {'rows': 6}) ! call term_sendkeys(buf, ":abc") call VerifyScreenDump(buf, 'Test_vim9_silent_echo', {}) " clean up call StopVimInTerminal(buf) call delete('XTest_silent_echo') ! endfunc " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker *** ../vim-8.2.1138/src/version.c 2020-07-05 18:41:05.171877168 +0200 --- src/version.c 2020-07-05 18:48:02.405935293 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1139, /**/ -- Are leaders born or made? And if they're made, can we return them under warranty? (Scott Adams - The Dilbert principle) /// 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 ///