From: Bram Moolenaar Date: Thu, 10 Dec 2020 20:01:30 +0000 (+0100) Subject: patch 8.2.2127: Vim9: executing user command from Vim9 script not tested X-Git-Tag: v8.2.2127 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70249ee831df357c1a5475473fc84c40d101a67d;p=vim patch 8.2.2127: Vim9: executing user command from Vim9 script not tested Problem: Vim9: executing user command defined in Vim9 script not tested. Solution: Add a test. --- diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim index 72a373a31..bb070cacd 100644 --- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -2381,6 +2381,27 @@ def Test_vim9_comment() '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', diff --git a/src/version.c b/src/version.c index 491ea9004..1a534ee21 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2127, /**/ 2126, /**/