diff options
author | oni-link <knil.ino@gmail.com> | 2014-04-28 19:52:05 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-28 16:16:40 -0300 |
commit | e772cfcc55878f82b5ab1358a10dcdca6c326e08 (patch) | |
tree | 2148c497f724cbbd54943935e3ee93c0b9013767 /src/regexp.h | |
parent | d4f8a86700a1e5c7b3694a34392f311d78e023a6 (diff) | |
download | rneovim-e772cfcc55878f82b5ab1358a10dcdca6c326e08.tar.gz rneovim-e772cfcc55878f82b5ab1358a10dcdca6c326e08.tar.bz2 rneovim-e772cfcc55878f82b5ab1358a10dcdca6c326e08.zip |
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
Diffstat (limited to 'src/regexp.h')
-rw-r--r-- | src/regexp.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |