0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.1516: Vim9: error for :exe has wrong line number

Problem:    Vim9: error for :exe has wrong line number.
Solution:   Set line number before calling do_cmdline_cmd(). (closes #6774)
This commit is contained in:
Bram Moolenaar
2020-08-23 16:29:11 +02:00
parent 8436773fad
commit 430deb1945
3 changed files with 8 additions and 2 deletions

View File

@@ -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();