mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Merge branch 'obsd-master'
This commit is contained in:
4
utf8.c
4
utf8.c
@ -233,10 +233,10 @@ utf8_width(struct utf8_data *ud, int *width)
|
||||
*width = utf8proc_wcwidth(wc);
|
||||
#else
|
||||
*width = wcwidth(wc);
|
||||
#endif
|
||||
log_debug("UTF-8 %.*s %#x, wcwidth() %d", (int)ud->size, ud->data,
|
||||
(u_int)wc, *width);
|
||||
if (*width >= 0 && *width <= 0xff)
|
||||
return (UTF8_DONE);
|
||||
log_debug("UTF-8 %.*s, wcwidth() %d", (int)ud->size, ud->data, *width);
|
||||
return (UTF8_ERROR);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user