Merge pull request #16381 from VVKot/vim-8.1.0228

vim-patch:8.1.0228, 8.1.1384, 8.1.1386, 8.1.1393, 8.2.3040
This commit is contained in:
Jan Edmund Lazo
2021-11-30 21:21:36 -05:00
committed by GitHub
4 changed files with 5 additions and 5 deletions

View File

@@ -5401,7 +5401,7 @@ static int get_id_list(char_u **const arg, const int keylen, int16_t **const lis
do {
for (end = p; *end && !ascii_iswhite(*end) && *end != ','; end++) {
}
char_u *const name = xmalloc((int)(end - p + 3)); // leave room for "^$"
char_u *const name = xmalloc(end - p + 3); // leave room for "^$"
STRLCPY(name + 1, p, end - p + 1);
if (STRCMP(name + 1, "ALLBUT") == 0
|| STRCMP(name + 1, "ALL") == 0