fix(terminal): don't crash on unprintable chars

fixes #31897
This commit is contained in:
bfredl
2025-01-07 11:16:53 +01:00
parent 3f0adf90de
commit f8c8a245aa
2 changed files with 14 additions and 1 deletions

View File

@@ -909,7 +909,7 @@ int vterm_screen_get_cell(const VTermScreen *screen, VTermPos pos, VTermScreenCe
return 0;
}
cell->schar = intcell->schar;
cell->schar = (intcell->schar == (uint32_t)-1) ? 0 : intcell->schar;
cell->attrs.bold = intcell->pen.bold;
cell->attrs.underline = intcell->pen.underline;