diff options
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 4 |
1 files changed, 1 insertions, 3 deletions
| @@ -2312,10 +2312,8 @@ tputc(Rune u) | |||
| 2312 | width = len = 1; | 2312 | width = len = 1; |
| 2313 | } else { | 2313 | } else { |
| 2314 | len = utf8encode(u, c); | 2314 | len = utf8encode(u, c); |
| 2315 | if (!control && (width = wcwidth(u)) == -1) { | 2315 | if (!control && (width = wcwidth(u)) == -1) |
| 2316 | memcpy(c, "\357\277\275", 4); /* UTF_INVALID */ | ||
| 2317 | width = 1; | 2316 | width = 1; |
| 2318 | } | ||
| 2319 | } | 2317 | } |
| 2320 | 2318 | ||
| 2321 | if (IS_SET(MODE_PRINT)) | 2319 | if (IS_SET(MODE_PRINT)) |
