diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-22 21:50:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-22 21:50:18 +0200 |
commit | df48fb456fb6bf63d94cad9b302ff01d8ee8d311 (patch) | |
tree | e40ac7facad1b205bf5990a535c8c1686fbeb05b /src/proto/list.pro | |
parent | 36edf0685c8b55ee3ce709058d83ada8027fec1e (diff) |
patch 7.4.2090v7.4.2090
Problem: Using submatch() in a lambda passed to substitute() is verbose.
Solution: Use a static list and pass it as an optional argument to the
function. Fix memory leak.
Diffstat (limited to 'src/proto/list.pro')
-rw-r--r-- | src/proto/list.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/list.pro b/src/proto/list.pro index 9849379597..56f0ddc4fb 100644 --- a/src/proto/list.pro +++ b/src/proto/list.pro @@ -32,4 +32,5 @@ char_u *list2string(typval_T *tv, int copyID, int restore_copyID); int list_join(garray_T *gap, list_T *l, char_u *sep, int echo_style, int restore_copyID, int copyID); int get_list_tv(char_u **arg, typval_T *rettv, int evaluate); int write_list(FILE *fd, list_T *list, int binary); +void init_static_list(staticList10_T *sl); /* vim: set ft=c : */ |