To: vim_dev@googlegroups.com Subject: Patch 8.2.2127 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2127 Problem: Vim9: executing user command defined in Vim9 script not tested. Solution: Add a test. Files: src/testdir/test_vim9_script.vim *** ../vim-8.2.2126/src/testdir/test_vim9_script.vim 2020-12-09 17:16:46.708470428 +0100 --- src/testdir/test_vim9_script.vim 2020-12-10 20:59:51.292643381 +0100 *************** *** 2381,2386 **** --- 2381,2407 ---- 'Echo', ], 'E121:') delcommand Echo + + var curdir = getcwd() + CheckScriptSuccess([ + 'command Echo cd " comment', + 'Echo', + 'delcommand Echo', + ]) + CheckScriptSuccess([ + 'vim9script' + 'command Echo cd # comment', + 'Echo', + 'delcommand Echo', + ]) + CheckScriptFailure([ + 'vim9script', + 'command Echo cd " comment', + 'Echo', + ], 'E344:') + delcommand Echo + chdir(curdir) + CheckScriptFailure([ 'vim9script', 'command Echo# comment', *** ../vim-8.2.2126/src/version.c 2020-12-10 20:50:31.046939538 +0100 --- src/version.c 2020-12-10 21:01:04.144344928 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2127, /**/ -- FROG: How you English say: I one more time, mac, I unclog my nose towards you, sons of a window-dresser, so, you think you could out-clever us French fellows with your silly knees-bent creeping about advancing behaviour. (blows a raspberry) I wave my private parts at your aunties, you brightly-coloured, mealy-templed, cranberry-smelling, electric donkey-bottom biters. "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 ///