mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-18 06:46:23 -04:00
fixed crashes on wide characters
This commit is contained in:
parent
85b6e63f4f
commit
dd14768301
1 changed files with 1 additions and 2 deletions
3
render.c
3
render.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue