diff --git a/src/buffer.c b/src/buffer.c index 5a639fcf58..d96f2fdc1a 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -5296,7 +5296,8 @@ build_stl_str_hl( } width = maxwidth; } - else if (width < maxwidth && outputlen + maxwidth - width + 1 < outlen) + else if (width < maxwidth && + outputlen + (maxwidth - width) * MB_CHAR2LEN(fillchar) + 1 < outlen) { // Find how many separators there are, which we will use when // figuring out how many groups there are. diff --git a/src/version.c b/src/version.c index 360e31edfb..7abc134fc5 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 78, /**/ 77, /**/