diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-05-26 21:10:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-05-26 21:10:11 +0200 |
commit | 7d840e9ac7529ec144e103d2a13abce8aa8c1ff1 (patch) | |
tree | b3967f76a4c1d5cbd20e647478ea5c9c079a451a /src/testdir/test_vim9_builtin.vim | |
parent | 4c8e8c6e19b75d632b042aa0ba0a2ab769b2162e (diff) |
patch 8.2.2888: Vim9: "k" command recognized in Vim9 scriptv8.2.2888
Problem: Vim9: "k" command recognized in Vim9 script.
Solution: Do not recognize "k" or "s" and "d" with flags.
Diffstat (limited to 'src/testdir/test_vim9_builtin.vim')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index 8f0d47f569..3fa5eb3065 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -554,6 +554,29 @@ def Test_filter_missing_argument() res->assert_equal({aa: [1], ac: [3]}) enddef +def Test_fullcommand() + assert_equal('next', fullcommand('n')) + assert_equal('noremap', fullcommand('no')) + assert_equal('noremap', fullcommand('nor')) + assert_equal('normal', fullcommand('norm')) + + assert_equal('', fullcommand('k')) + assert_equal('keepmarks', fullcommand('ke')) + assert_equal('keepmarks', fullcommand('kee')) + assert_equal('keepmarks', fullcommand('keep')) + assert_equal('keepjumps', fullcommand('keepj')) + + assert_equal('dlist', fullcommand('dl')) + assert_equal('', fullcommand('dp')) + assert_equal('delete', fullcommand('del')) + assert_equal('', fullcommand('dell')) + assert_equal('', fullcommand('delp')) + + assert_equal('srewind', fullcommand('sre')) + assert_equal('scriptnames', fullcommand('scr')) + assert_equal('', fullcommand('scg')) +enddef + def Test_garbagecollect() garbagecollect(true) enddef |