diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-10 21:01:30 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-10 21:01:30 +0100 |
commit | 70249ee831df357c1a5475473fc84c40d101a67d (patch) | |
tree | 7b057c74eb7942b543471412543e6cc64265d10c /src | |
parent | 0e12140550a63bb1e45771edb89b941959440cfe (diff) |
patch 8.2.2127: Vim9: executing user command from Vim9 script not testedv8.2.2127
Problem: Vim9: executing user command defined in Vim9 script not tested.
Solution: Add a test.
Diffstat (limited to 'src')
-rw-r--r-- | src/testdir/test_vim9_script.vim | 21 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim index 72a373a31c..bb070cacdc 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 491ea90042..1a534ee211 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2127, +/**/ 2126, /**/ 2125, |