0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.2775: Vim9: wrong line number used for some commands

Problem:    Vim9: wrong line number used for some commands.
Solution:   For :exe, :echo and the like use the line number of the start of
            the command.  When calling a function set the line number in the
            script context.
This commit is contained in:
Bram Moolenaar
2021-04-17 17:59:19 +02:00
parent 6c7cc347af
commit c70fe460b0
5 changed files with 46 additions and 5 deletions

View File

@@ -2045,7 +2045,7 @@ typedef struct {
except_T *except; // exception info
} es_info;
#if defined(FEAT_EVAL)
scid_T es_save_sid; // saved sc_sid when calling function
sctx_T es_save_sctx; // saved current_sctx when calling function
#endif
} estack_T;