Commit 6ec65d55 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

display: check the correct character for being double-width

This fixes https://savannah.gnu.org/bugs/?50741.
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -1932,7 +1932,7 @@ char *display_string(const char *buf, size_t start_col, size_t span,
#ifdef ENABLE_UTF8
/* Display the left half of a two-column character as '>'. */
if (using_utf8() && mbwidth(buf) == 2)
if (mbwidth(converted + index) == 2)
converted[index++] = '>';
#endif
}
......
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