pull/8757/head
Jacob Sandlund 2025-08-06 00:06:27 -04:00
parent 0c393299b0
commit 7e429d73d6
3 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,8 @@ pub fn init(b: *std.Build, cfg: *const Config) !SharedDeps {
const uucode = b.dependency("uucode", .{
.build_config_path = b.path("src/build/uucode_config.zig"),
});
@import("uucode_x").connectBuild(b.dependency("uucode_x", .{}), uucode);
const uucode_x = b.dependency("uucode_x", .{});
@import("uucode_x").connectBuild(uucode_x, uucode);
break :blk uucode.namedLazyPath("tables.zig");
};

View File

@ -9,6 +9,7 @@ pub const tables = [_]config.Table{
x.wcwidth.field("wcwidth"),
d.field("general_category"),
d.field("has_emoji_presentation"),
d.field("block"),
},
},
};

View File

@ -1,7 +1,6 @@
const std = @import("std");
const Allocator = std.mem.Allocator;
const assert = std.debug.assert;
const ziglyph = @import("ziglyph");
const uucode = @import("uucode");
const font = @import("../font/main.zig");
const terminal = @import("../terminal/main.zig");
@ -238,7 +237,7 @@ pub fn constraintWidth(cell_pin: terminal.Pin) u2 {
// If not a Co (Private Use) and not a Dingbats, use grid width.
if (uucode.get("general_category", cp) != .Co and
!ziglyph.blocks.isDingbats(cp))
uucode.get("block", cp) != .dingbats)
{
return cell.gridWidth();
}