From e772cfcc55878f82b5ab1358a10dcdca6c326e08 Mon Sep 17 00:00:00 2001 From: oni-link Date: Mon, 28 Apr 2014 19:52:05 +0200 Subject: vim-patch:7.4.241 Problem: The string returned by submatch() does not distinguish between a NL from a line break and a NL that stands for a NUL character. Solution: Add a second argument to return a list. (ZyX) https://code.google.com/p/vim/source/detail?r=a63d0cd691dc925283815d17d62f4e948d723a59 --- src/regexp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/regexp.h') diff --git a/src/regexp.h b/src/regexp.h index 118f066b1c..8de3ef2288 100644 --- a/src/regexp.h +++ b/src/regexp.h @@ -16,6 +16,7 @@ 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); regprog_T *vim_regcomp(char_u *expr_arg, int re_flags); void vim_regfree(regprog_T *prog); int vim_regexec(regmatch_T *rmp, char_u *line, colnr_T col); -- cgit