summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2009-04-22 13:39:36 +0000
committervimboss <devnull@localhost>2009-04-22 13:39:36 +0000
commit25213fa330b0f129f929776df56256e72ab56da1 (patch)
treec9ec6c3b0f39491cdb5e1a9ca7248137008bd698
parentb60a0b69d864eebb43dfd7efdf3c0a8794abcebd (diff)
downloadvim-25213fa330b0f129f929776df56256e72ab56da1.tar.gz
updated for version 7.2-153v7.2.153v7-2-153
-rw-r--r--src/memline.c15
-rw-r--r--src/version.c2
2 files changed, 12 insertions, 5 deletions
diff --git a/src/memline.c b/src/memline.c
index f5a68b19..96261aba 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -1554,10 +1554,15 @@ recover_names(fname, list, nr)
for (i = 0; i < num_files; ++i)
if (fullpathcmp(p, files[i], TRUE) & FPC_SAME)
{
+ /* Remove the name from files[i]. Move further entries
+ * down. When the array becomes empty free it here, since
+ * FreeWild() won't be called below. */
vim_free(files[i]);
- --num_files;
- for ( ; i < num_files; ++i)
- files[i] = files[i + 1];
+ if (--num_files == 0)
+ vim_free(files);
+ else
+ for ( ; i < num_files; ++i)
+ files[i] = files[i + 1];
}
}
if (nr > 0)
@@ -3522,7 +3527,7 @@ resolve_symlink(fname, buf)
if (errno == EINVAL || errno == ENOENT)
{
/* Found non-symlink or not existing file, stop here.
- * When at the first level use the unmodifed name, skip the
+ * When at the first level use the unmodified name, skip the
* call to vim_FullName(). */
if (depth == 1)
return FAIL;
@@ -4560,7 +4565,7 @@ ml_updatechunk(buf, line, len, updtype)
buf->b_ml.ml_chunksize + curix,
(buf->b_ml.ml_usedchunks - curix) *
sizeof(chunksize_T));
- /* Compute length of first half of lines in the splitted chunk */
+ /* Compute length of first half of lines in the split chunk */
size = 0;
linecnt = 0;
while (curline < buf->b_ml.ml_line_count
diff --git a/src/version.c b/src/version.c
index 45825767..438dfccd 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 */
/**/
+ 153,
+/**/
152,
/**/
151,