0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.1479: small source file problems; outdated list of distrib. files

Problem:    Small source file problems; outdated list of distributed files.
Solution:   Small updates to source files and list of distributed files.
This commit is contained in:
Bram Moolenaar
2023-04-22 22:54:40 +01:00
parent 71badf9547
commit f39d9e9dca
15 changed files with 25 additions and 33 deletions

View File

@@ -133,7 +133,7 @@ get_buffcont(
for (bp = buffer->bh_first.b_next; bp != NULL; bp = bp->b_next)
count += (long_u)STRLEN(bp->b_str);
if ((count || dozero) && (p = alloc(count + 1)) != NULL)
if ((count > 0 || dozero) && (p = alloc(count + 1)) != NULL)
{
p2 = p;
for (bp = buffer->bh_first.b_next; bp != NULL; bp = bp->b_next)
@@ -141,7 +141,7 @@ get_buffcont(
*p2++ = *str++;
*p2 = NUL;
}
return (p);
return p;
}
/*