To: vim_dev@googlegroups.com Subject: Patch 8.2.0993 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0993 Problem: Vim9 script test fails with normal features. Solution: Use :func instead of :def for now. Files: src/testdir/test_vim9_script.vim *** ../vim-8.2.0992/src/testdir/test_vim9_script.vim 2020-06-16 23:18:48.116416938 +0200 --- src/testdir/test_vim9_script.vim 2020-06-17 12:04:35.453876302 +0200 *************** *** 778,784 **** assert_fails('export something', 'E1043') enddef ! def Test_import_fails_without_script() CheckRunVimInTerminal let export =<< trim END --- 778,784 ---- assert_fails('export something', 'E1043') enddef ! func Test_import_fails_without_script() CheckRunVimInTerminal let export =<< trim END *************** *** 787,801 **** return 0 enddef END ! writefile(export, 'Xexport.vim') ! let buf = RunVimInTerminal('-c "import Foo from ''./Xexport.vim''"', #{ ! rows: 6, wait_for_ruler: 0}) ! WaitForAssert({-> assert_match('^E1094:', term_getline(buf, 5))}) ! delete('Xexport.vim') ! StopVimInTerminal(buf) ! enddef def Test_vim9script_reload_import() let lines =<< trim END --- 787,800 ---- return 0 enddef END ! call writefile(export, 'Xexport.vim') ! let buf = RunVimInTerminal('-c "import Foo from ''./Xexport.vim''"', #{rows: 6, wait_for_ruler: 0}) ! call WaitForAssert({-> assert_match('^E1094:', term_getline(buf, 5))}) ! call delete('Xexport.vim') ! call StopVimInTerminal(buf) ! endfunc def Test_vim9script_reload_import() let lines =<< trim END *** ../vim-8.2.0992/src/version.c 2020-06-16 23:18:48.116416938 +0200 --- src/version.c 2020-06-17 11:58:54.498771114 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 993, /**/ -- 5 out of 4 people have trouble with fractions. /// 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 ///