tweaks: remove a superfluous check
The mbwidth() function itself checks whether UTF-8 is being used and does the right thing.
Этот коммит содержится в:
родитель
81aebeb2a9
Коммит
03ecbf3d55
@ -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++;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user