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

patch 8.2.4429: using script-local function from the wrong script

Problem:    Using script-local function from the wrong script when using a
            partial. (Yegappan Lakshmanan)
Solution:   Include the script ID in the partial name.
This commit is contained in:
Bram Moolenaar
2022-02-21 13:13:50 +00:00
parent 0f6e28f686
commit c2f17f7e64
6 changed files with 81 additions and 7 deletions

View File

@@ -457,7 +457,7 @@ typval2type_int(typval_T *tv, int copyID, garray_T *type_gap, int flags)
{
type->tt_argcount -= tv->vval.v_partial->pt_argc;
type->tt_min_argcount -= tv->vval.v_partial->pt_argc;
if (type->tt_argcount == 0)
if (type->tt_argcount <= 0)
type->tt_args = NULL;
else
{