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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user