diff --git a/flake.lock b/flake.lock index d60048d3a..2498a7bc4 100644 --- a/flake.lock +++ b/flake.lock @@ -109,11 +109,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1664107732, - "narHash": "sha256-xgPnToE80t8NCYWTB3YGE9gHTor/K5UgMNklbD4xIMQ=", + "lastModified": 1665663057, + "narHash": "sha256-k42CNjlArnr64st2EBlDiZzo0jBzCs6eta7zeb2KH6w=", "owner": "mitchellh", "repo": "zig-overlay", - "rev": "7ba828439e11e80e797bdbb2cfc975b36111d7cd", + "rev": "049f82ae9bc43f9ced8e3aa52f936b186c09c85f", "type": "github" }, "original": { diff --git a/pkg/freetype/face.zig b/pkg/freetype/face.zig index ef70e344d..e6b6df90c 100644 --- a/pkg/freetype/face.zig +++ b/pkg/freetype/face.zig @@ -99,7 +99,7 @@ pub const SfntTag = enum(c_int) { pclt = c.FT_SFNT_PCLT, /// The data type for a given sfnt tag. - pub fn DataType(self: SfntTag) type { + pub fn DataType(comptime self: SfntTag) type { return switch (self) { .os2 => c.TT_OS2, else => unreachable, // As-needed... diff --git a/pkg/macos/build.zig b/pkg/macos/build.zig index b2f778b0c..ffa76ac08 100644 --- a/pkg/macos/build.zig +++ b/pkg/macos/build.zig @@ -22,7 +22,7 @@ pub fn link( defer flags.deinit(); const lib = b.addStaticLibrary("macos", null); - step.addCSourceFile(thisDir() ++ "/text/ext.c", flags.items); + step.addCSourceFile(comptime thisDir() ++ "/text/ext.c", flags.items); step.linkFramework("CoreFoundation"); step.linkFramework("CoreText"); return lib; diff --git a/src/terminal/stream.zig b/src/terminal/stream.zig index b7fe90994..343310af4 100644 --- a/src/terminal/stream.zig +++ b/src/terminal/stream.zig @@ -57,7 +57,7 @@ pub fn Stream(comptime Handler: type) type { switch (action_opt orelse continue) { .print => |p| if (@hasDecl(T, "print")) try self.handler.print(p), .execute => |code| try self.execute(code), - .csi_dispatch => |csi| try self.csiDispatch(csi), + .csi_dispatch => |csi_action| try self.csiDispatch(csi_action), .esc_dispatch => |esc| try self.escDispatch(esc), .osc_dispatch => |cmd| log.warn("unhandled OSC: {}", .{cmd}), .dcs_hook => |dcs| log.warn("unhandled DCS hook: {}", .{dcs}),