summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-09 22:28:11 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-09 22:28:11 +0100
commitb0745b221d284e381f1bd4b591cd68ea54b6a51d (patch)
tree7dcb9c03cfc28c3c84359d9f04ec2d41d1173f2c /src/structs.h
parentdbd4316806389e3c2240b48cc6c4d209cb1665fd (diff)
patch 8.1.2280: crash when passing partial to substitute()v8.1.2280
Problem: Crash when passing partial to substitute(). Solution: Take extra arguments into account. (closes #5186)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/structs.h b/src/structs.h
index fd3a1d072b..69dc7825e1 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1627,10 +1627,11 @@ typedef struct
//
// "argv_func", when not NULL, can be used to fill in arguments only when the
// invoked function uses them. It is called like this:
-// new_argcount = argv_func(current_argcount, argv, called_func_argcount)
+// new_argcount = argv_func(current_argcount, argv, partial_argcount,
+// called_func_argcount)
//
typedef struct {
- int (* argv_func)(int, typval_T *, int);
+ int (* argv_func)(int, typval_T *, int, int);
linenr_T firstline; // first line of range
linenr_T lastline; // last line of range
int *doesrange; // if not NULL: return: function handled range