0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -04:00

updated for version 7.1-147

This commit is contained in:
Bram Moolenaar
2007-10-30 16:37:15 +00:00
parent b52e260d23
commit 9642664800
2 changed files with 5 additions and 1 deletions

View File

@@ -3353,6 +3353,7 @@ ExpandOne(xp, str, orig, options, mode)
char_u *ss = NULL;
static int findex;
static char_u *orig_save = NULL; /* kept value of orig */
int orig_saved = FALSE;
int i;
long_u len;
int non_suf_match; /* number without matching suffix */
@@ -3421,6 +3422,7 @@ ExpandOne(xp, str, orig, options, mode)
{
vim_free(orig_save);
orig_save = orig;
orig_saved = TRUE;
/*
* Do the expansion.
@@ -3546,7 +3548,7 @@ ExpandOne(xp, str, orig, options, mode)
ExpandCleanup(xp);
/* Free "orig" if it wasn't stored in "orig_save". */
if (orig != orig_save)
if (!orig_saved)
vim_free(orig);
return ss;

View File

@@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
147,
/**/
146,
/**/