tweaks: remove a superfluous check

The mbwidth() function itself checks whether UTF-8 is being used
and does the right thing.
master
Benno Schulenberg 2017-04-28 13:52:15 +02:00
parent 81aebeb2a9
commit 03ecbf3d55
1 changed files with 1 additions and 1 deletions

View File

@ -1852,7 +1852,7 @@ char *display_string(const char *buf, size_t start_col, size_t span,
}
}
#ifdef ENABLE_UTF8
else if (using_utf8() && mbwidth(buf) == 2) {
else if (mbwidth(buf) == 2) {
if (column >= start_col) {
converted[index++] = ' ';
start_col++;