tweaks: remove a superfluous check
The mbwidth() function itself checks whether UTF-8 is being used and does the right thing.master
parent
81aebeb2a9
commit
03ecbf3d55
|
@ -1852,7 +1852,7 @@ char *display_string(const char *buf, size_t start_col, size_t span,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef ENABLE_UTF8
|
#ifdef ENABLE_UTF8
|
||||||
else if (using_utf8() && mbwidth(buf) == 2) {
|
else if (mbwidth(buf) == 2) {
|
||||||
if (column >= start_col) {
|
if (column >= start_col) {
|
||||||
converted[index++] = ' ';
|
converted[index++] = ' ';
|
||||||
start_col++;
|
start_col++;
|
||||||
|
|
Loading…
Reference in New Issue