diff --git a/src/renderer/vaxis/renderer.zig b/src/renderer/vaxis/renderer.zig index 78524c2..10a3e1e 100644 --- a/src/renderer/vaxis/renderer.zig +++ b/src/renderer/vaxis/renderer.zig @@ -16,7 +16,7 @@ pub const CursorShape = vaxis.Cell.CursorShape; pub const style = @import("style.zig").StyleBits; pub const styles = @import("style.zig"); -const GraphemeCache = @import("GraphemeCache.zig"); +pub const GraphemeCache = @import("GraphemeCache.zig"); const Self = @This(); pub const log_name = "vaxis"; diff --git a/src/renderer/win32/renderer.zig b/src/renderer/win32/renderer.zig index 37c6223..52acfbc 100644 --- a/src/renderer/win32/renderer.zig +++ b/src/renderer/win32/renderer.zig @@ -7,6 +7,7 @@ const vaxis = @import("vaxis"); const Style = @import("theme").Style; const Color = @import("theme").Color; pub const CursorShape = vaxis.Cell.CursorShape; +const GraphemeCache = @import("tuirenderer").GraphemeCache; pub const Plane = @import("tuirenderer").Plane; pub const Layer = @import("tuirenderer").Layer; @@ -75,6 +76,7 @@ fn messageBoxThenPanic( allocator: std.mem.Allocator, vx: vaxis.Vaxis, +cache_storage: GraphemeCache.Storage = .{}, event_buffer: std.Io.Writer.Allocating, @@ -181,6 +183,7 @@ pub fn stdplane(self: *Self) Plane { const name = "root"; var plane: Plane = .{ .window = self.vx.window(), + .cache = self.cache_storage.cache(), .name_buf = undefined, .name_len = name.len, };