diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-16 21:43:54 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-16 21:43:54 +0100 |
commit | 1c0aa97827f30e3051ee50a0690555c2c23c0ceb (patch) | |
tree | a45575382b93123ba3b613e07ffd4396565673d3 /src/testdir/test_vim9_cmd.vim | |
parent | 530bed993e41bda6f717a8ddd0acb39464f95336 (diff) |
patch 8.2.2148: Vim9: crash when user command doesn't matchv8.2.2148
Problem: Vim9: crash when user command doesn't match.
Solution: Adjust command index. (closes #7479)
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 95d696913d..bdc9ad06da 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -701,5 +701,14 @@ def Test_cmd_argument_without_colon() delete('Xfile') enddef +def Test_ambiguous_user_cmd() + var lines =<< trim END + com Cmd1 eval 0 + com Cmd2 eval 0 + Cmd + END + CheckScriptFailure(lines, 'E464:') +enddef + " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |