summary |
log |
commit |
diff |
tree
raw |
patch |
inline | side by side (from parent 1:
8211e36)
In particular on OpenBSD and on glibc wcwidth() is quite expensive.
On musl there is little difference.
Glyph *gp;
control = ISCONTROL(u);
Glyph *gp;
control = ISCONTROL(u);
- if (!IS_SET(MODE_UTF8 | MODE_SIXEL)) {
+ if (u < 127 || !IS_SET(MODE_UTF8 | MODE_SIXEL)) {
c[0] = u;
width = len = 1;
} else {
c[0] = u;
width = len = 1;
} else {