diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim index 05b4e9f022..6417d21ee1 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() diff --git a/src/version.c b/src/version.c index 65b9d0fd72..4c2794af0b 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1516, /**/ 1515, /**/ diff --git a/src/vim9execute.c b/src/vim9execute.c index a49f3d7c6f..53a748e971 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -1062,7 +1062,10 @@ call_def_function( if (ga.ga_data != NULL) { if (iptr->isn_type == ISN_EXECUTE) + { + SOURCING_LNUM = iptr->isn_lnum; do_cmdline_cmd((char_u *)ga.ga_data); + } else { msg_sb_eol();