summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2009-02-21 21:04:20 +0000
committervimboss <devnull@localhost>2009-02-21 21:04:20 +0000
commitd06bd5917b38c066f66843b5df091075c52d1475 (patch)
treeeae4f1e933d313e45f367cec159c4bbe5344c633
parent7c531d36641de4ca3eae84d234d76ea45c73a400 (diff)
downloadvim-d06bd5917b38c066f66843b5df091075c52d1475.tar.gz
updated for version 7.2-113v7.2.113v7-2-113
-rw-r--r--src/regexp.c10
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/regexp.c b/src/regexp.c
index ac60c695..00df12d5 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -4532,7 +4532,7 @@ regmatch(scan)
cleanup_subexpr();
if (!REG_MULTI) /* Single-line regexp */
{
- if (reg_endp[no] == NULL)
+ if (reg_startp[no] == NULL || reg_endp[no] == NULL)
{
/* Backref was not set: Match an empty string. */
len = 0;
@@ -4548,7 +4548,7 @@ regmatch(scan)
}
else /* Multi-line regexp */
{
- if (reg_endpos[no].lnum < 0)
+ if (reg_startpos[no].lnum < 0 || reg_endpos[no].lnum < 0)
{
/* Backref was not set: Match an empty string. */
len = 0;
@@ -7279,13 +7279,11 @@ reg_submatch(no)
}
else
{
- if (submatch_match->endp[no] == NULL)
+ s = submatch_match->startp[no];
+ if (s == NULL || submatch_match->endp[no] == NULL)
retval = NULL;
else
- {
- s = submatch_match->startp[no];
retval = vim_strnsave(s, (int)(submatch_match->endp[no] - s));
- }
}
return retval;
diff --git a/src/version.c b/src/version.c
index 9b8ac51f..89ecba0e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -677,6 +677,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 113,
+/**/
112,
/**/
111,