0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.0e06

This commit is contained in:
Bram Moolenaar
2006-04-22 22:33:57 +00:00
parent 57657d85c6
commit eb3593b38b
49 changed files with 729 additions and 365 deletions

View File

@@ -7054,7 +7054,7 @@ reg_submatch(no)
int round;
linenr_T lnum;
if (!can_f_submatch)
if (!can_f_submatch || no < 0)
return NULL;
if (submatch_match == NULL)
@@ -7112,10 +7112,10 @@ reg_submatch(no)
++len;
}
if (round == 1)
if (retval == NULL)
{
retval = lalloc((long_u)len, TRUE);
if (s == NULL)
if (retval == NULL)
return NULL;
}
}