renderer: drop opaque background for preedit cells

This commit is contained in:
Shunya Yamashita
2026-02-17 10:29:09 +09:00
parent 34c6685e2e
commit b1dce5f942

View File

@@ -2534,7 +2534,6 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
self.addPreeditCell(
cp,
.{ .x = x, .y = range.y },
state.colors.background,
state.colors.foreground,
) catch |err| {
log.warn("error building preedit cell, will be invalid x={} y={}, err={}", .{
@@ -3264,7 +3263,6 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
self: *Self,
cp: renderer.State.Preedit.Codepoint,
coord: terminal.Coordinate,
screen_bg: terminal.color.RGB,
screen_fg: terminal.color.RGB,
) !void {
// Render the glyph for our preedit text
@@ -3283,16 +3281,6 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
return;
};
// Add our opaque background cell
self.cells.bgCell(coord.y, coord.x).* = .{
screen_bg.r, screen_bg.g, screen_bg.b, 255,
};
if (cp.wide and coord.x < self.cells.size.columns - 1) {
self.cells.bgCell(coord.y, coord.x + 1).* = .{
screen_bg.r, screen_bg.g, screen_bg.b, 255,
};
}
// Add our text
try self.cells.add(self.alloc, .text, .{
.atlas = .grayscale,