fixed crashes on wide characters

This commit is contained in:
Joschua Kesper 2024-05-29 16:15:03 +02:00
parent 85b6e63f4f
commit dd14768301
No known key found for this signature in database
GPG key ID: E683C3A5BC5C8BF9

View file

@ -2,7 +2,6 @@
#include <string.h>
#include <wctype.h>
#include <ctype.h>
#include <unistd.h>
#include <signal.h>
@ -573,7 +572,7 @@ render_cell(struct terminal *term, pixman_image_t *pix, pixman_region32_t *damag
* NOTE: if changing this, also update render_margin()
*/
xassert(alpha == 0xffff);
} else if (isspace(cell->wc) || cell->wc == 0) {
} else if (isc32space(cell->wc) || cell->wc == 0) {
alpha = term->colors.alpha;
} else {
alpha = term->colors.alpha_non_whitespace;