diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-06-10 16:45:13 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-06-10 16:45:13 +0100 |
commit | 5ca05fa59e587f9724306d4788c5dde07fc7225b (patch) | |
tree | 73e72af12e3e1579a0c3530554747b0639626341 /src/structs.h | |
parent | f07d1a7108f29068efeb61d91454c4120ab5ae6c (diff) |
patch 9.0.1624: crash when calling object constructorv9.0.1624
Problem: Crash when calling object constructor from legacy script. (Israel
Chauca Fuentes)
Solution: Pass a pointer for "ufunc". (closes #12502)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h index 3a32bc595d..ccef537040 100644 --- a/src/structs.h +++ b/src/structs.h @@ -2184,7 +2184,9 @@ typedef struct { linenr_T fe_lastline; // last line of range int *fe_doesrange; // if not NULL: return: function handled range int fe_evaluate; // actually evaluate expressions - partial_T *fe_partial; // for extra arguments + ufunc_T *fe_ufunc; // function to be called, when NULL lookup by + // name + partial_T *fe_partial; // for "dict" and extra arguments dict_T *fe_selfdict; // Dictionary for "self" object_T *fe_object; // object, e.g. for "this.Func()" typval_T *fe_basetv; // base for base->method() |