mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-25 08:25:47 +01:00
Merge branch 'master' of ssh://suckless.org/gitrepos/st
This commit is contained in:
commit
0c94f8621b
1 changed files with 2 additions and 2 deletions
4
st.c
4
st.c
|
@ -2896,15 +2896,15 @@ tputc(Rune u)
|
|||
int width, len;
|
||||
Glyph *gp;
|
||||
|
||||
control = ISCONTROL(u);
|
||||
len = utf8encode(u, c);
|
||||
if ((width = wcwidth(u)) == -1) {
|
||||
if (!control && (width = wcwidth(u)) == -1) {
|
||||
memcpy(c, "\357\277\275", 4); /* UTF_INVALID */
|
||||
width = 1;
|
||||
}
|
||||
|
||||
if (IS_SET(MODE_PRINT))
|
||||
tprinter(c, len);
|
||||
control = ISCONTROL(u);
|
||||
|
||||
/*
|
||||
* STR sequence must be checked before anything else
|
||||
|
|
Loading…
Reference in a new issue