diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-19 19:10:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-19 19:10:51 +0200 |
commit | 72ab729c3dcdea0fba44d8e676602c847e841bcd (patch) | |
tree | 82fb5790a50f308a743f4a58c9bdf5d83bcbc5a1 /src/proto | |
parent | f562e72df726c6191fa305e1c0a113f1cfb87f76 (diff) | |
download | vim-72ab729c3dcdea0fba44d8e676602c847e841bcd.zip |
patch 7.4.2072
Problem: substitute() does not support a Funcref argument.
Solution: Support a Funcref like it supports a string starting with "\=".
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/eval.pro | 2 | ||||
-rw-r--r-- | src/proto/regexp.pro | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/proto/eval.pro b/src/proto/eval.pro index c6d202d58..e9ec97df4 100644 --- a/src/proto/eval.pro +++ b/src/proto/eval.pro @@ -126,6 +126,6 @@ void assert_exception(typval_T *argvars); void assert_fails(typval_T *argvars); void fill_assert_error(garray_T *gap, typval_T *opt_msg_tv, char_u *exp_str, typval_T *exp_tv, typval_T *got_tv, assert_type_T atype); int modify_fname(char_u *src, int *usedlen, char_u **fnamep, char_u **bufp, int *fnamelen); -char_u *do_string_sub(char_u *str, char_u *pat, char_u *sub, char_u *flags); +char_u *do_string_sub(char_u *str, char_u *pat, char_u *sub, typval_T *expr, char_u *flags); void filter_map(typval_T *argvars, typval_T *rettv, int map); /* vim: set ft=c : */ diff --git a/src/proto/regexp.pro b/src/proto/regexp.pro index 5cdabb26a..dfe5c91d5 100644 --- a/src/proto/regexp.pro +++ b/src/proto/regexp.pro @@ -7,7 +7,7 @@ void free_regexp_stuff(void); reg_extmatch_T *ref_extmatch(reg_extmatch_T *em); void unref_extmatch(reg_extmatch_T *em); char_u *regtilde(char_u *source, int magic); -int vim_regsub(regmatch_T *rmp, char_u *source, char_u *dest, int copy, int magic, int backslash); +int vim_regsub(regmatch_T *rmp, char_u *source, typval_T *expr, char_u *dest, int copy, int magic, int backslash); int vim_regsub_multi(regmmatch_T *rmp, linenr_T lnum, char_u *source, char_u *dest, int copy, int magic, int backslash); char_u *reg_submatch(int no); list_T *reg_submatch_list(int no); |