diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-15 21:46:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-15 21:46:02 +0100 |
commit | aa5341477c9f3840d63f709de3b9e5d0266f93d7 (patch) | |
tree | ed3a40bb10ad93bbf009e33ee6af623f409f3713 /src/testdir/test_vim9_builtin.vim | |
parent | a4abe514ecd9b7a038feed89f48476809775c80f (diff) |
patch 9.0.0473: fullcommand() only works for the current script versionv9.0.0473
Problem: fullcommand() only works for the current script version.
Solution: Add an optional argument for the script version.
Diffstat (limited to 'src/testdir/test_vim9_builtin.vim')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index 109cb35af6..dccd99bb32 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -1530,6 +1530,13 @@ def Test_fullcommand() assert_equal('scriptnames', fullcommand('scr')) assert_equal('', fullcommand('scg')) fullcommand('')->assert_equal('') + + assert_equal('', fullcommand('en')) + legacy call assert_equal('endif', fullcommand('en')) + assert_equal('endif', fullcommand('en', 0)) + legacy call assert_equal('endif', fullcommand('en', 0)) + assert_equal('', fullcommand('en', 1)) + legacy call assert_equal('', fullcommand('en', 1)) enddef def Test_funcref() |