Mercurial > vim
diff src/testdir/test_vim9_builtin.vim @ 24699:b19c8150ee9d v8.2.2888
patch 8.2.2888: Vim9: "k" command recognized in Vim9 script
Commit: https://github.com/vim/vim/commit/7d840e9ac7529ec144e103d2a13abce8aa8c1ff1
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 26 21:10:11 2021 +0200
patch 8.2.2888: Vim9: "k" command recognized in Vim9 script
Problem: Vim9: "k" command recognized in Vim9 script.
Solution: Do not recognize "k" or "s" and "d" with flags.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 26 May 2021 21:15:03 +0200 |
parents | 13efbfc53054 |
children | 0bc60e26a2b5 |
line wrap: on
line diff
--- 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