Commit d344c3d0 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey Committed by Benno Schulenberg
Browse files

display: don't cut off zero-width characters at the end of a chunk

This fixes https://savannah.gnu.org/bugs/?52258

.
Reported-by: default avatarPeter Passchier <peter@passchier.net>
parent 3018ab47
Showing with 1 addition and 1 deletion
+1 -1
......@@ -1949,7 +1949,7 @@ char *display_string(const char *buf, size_t column, size_t span, bool isdata)
#endif
}
while (*buf != '\0' && column < beyond) {
while (*buf != '\0' && (column < beyond || mbwidth(buf) == 0)) {
int charlength, charwidth = 1;
if (*buf == ' ') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment