diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-23 16:29:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-23 16:29:11 +0200 |
commit | 430deb1945cbc7a17ed42c5c737fc08d2eef327a (patch) | |
tree | 0e154ff5d15480462323f3cc0d65398afe047835 /src/testdir/test_vim9_script.vim | |
parent | 8436773fad285215481c4ce2b32692e66fca599f (diff) | |
download | vim-git-430deb1945cbc7a17ed42c5c737fc08d2eef327a.tar.gz |
patch 8.2.1516: Vim9: error for :exe has wrong line numberv8.2.1516
Problem: Vim9: error for :exe has wrong line number.
Solution: Set line number before calling do_cmdline_cmd(). (closes #6774)
Diffstat (limited to 'src/testdir/test_vim9_script.vim')
-rw-r--r-- | src/testdir/test_vim9_script.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim index 05b4e9f02..6417d21ee 100644 --- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -2159,8 +2159,9 @@ def Test_execute_cmd() echomsg [1, 2, 3] #{a: 1, b: 2} assert_match('^\[1, 2, 3\] {''a'': 1, ''b'': 2}$', Screenline(&lines)) - call CheckDefFailure(['execute xxx'], 'E1001:') - call CheckDefFailure(['execute "cmd"# comment'], 'E488:') + call CheckDefFailure(['execute xxx'], 'E1001:', 1) + call CheckDefExecFailure(['execute "tabnext " .. 8'], 'E475:', 1) + call CheckDefFailure(['execute "cmd"# comment'], 'E488:', 1) enddef def Test_execute_cmd_vimscript() |