display: don't cut off zero-width characters at the end of a chunk
This fixes https://savannah.gnu.org/bugs/?52258. Reported-by: Peter Passchier <peter@passchier.net>master
parent
3018ab4706
commit
d344c3d042
|
@ -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 == ' ') {
|
||||
|
|
Loading…
Reference in New Issue