mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
terminal: appendGrapheme should text for codepoint, not text
This commit is contained in:
@ -1816,7 +1816,6 @@ fn prepKittyVirtualPlacement(
|
||||
if (rows <= row_off) return;
|
||||
rows -= row_off;
|
||||
}
|
||||
|
||||
if (src_x + src_w > img_width_f64) {
|
||||
const redundant_px = src_x + src_w - img_width_f64;
|
||||
const redundant_cells = @as(u32, @intFromFloat(redundant_px * x_scale)) / self.grid_metrics.cell_width;
|
||||
|
@ -1152,7 +1152,7 @@ pub const Page = struct {
|
||||
pub fn setGraphemes(self: *Page, row: *Row, cell: *Cell, cps: []u21) Allocator.Error!void {
|
||||
defer self.assertIntegrity();
|
||||
|
||||
assert(cell.hasText());
|
||||
assert(cell.codepoint() > 0);
|
||||
assert(cell.content_tag == .codepoint);
|
||||
|
||||
const cell_offset = getOffset(Cell, self.memory, cell);
|
||||
|
Reference in New Issue
Block a user