Commit 03ecbf3d authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: remove a superfluous check

The mbwidth() function itself checks whether UTF-8 is being used
and does the right thing.
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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++;
......
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