font/shaper: if char is 0, should send space to shaper

This commit is contained in:
Mitchell Hashimoto
2023-12-11 11:06:15 -08:00
parent ff68c56268
commit 22a0869525

View File

@ -209,7 +209,10 @@ pub const RunIterator = struct {
} }
// Add all the codepoints for our grapheme // Add all the codepoints for our grapheme
try self.hooks.addCodepoint(cell.char, @intCast(cluster)); try self.hooks.addCodepoint(
if (cell.char == 0) ' ' else cell.char,
@intCast(cluster),
);
if (cell.attrs.grapheme) { if (cell.attrs.grapheme) {
var it = self.row.codepointIterator(j); var it = self.row.codepointIterator(j);
while (it.next()) |cp| { while (it.next()) |cp| {