mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 14:00:29 +00:00
apprt/gtk: fix Zig 0.15
This commit is contained in:
@@ -850,15 +850,17 @@ pub const Surface = extern struct {
|
||||
};
|
||||
const title = std.mem.span(title_);
|
||||
const body = body: {
|
||||
const exit_code = value.exit_code orelse break :body std.fmt.allocPrintZ(
|
||||
const exit_code = value.exit_code orelse break :body std.fmt.allocPrintSentinel(
|
||||
alloc,
|
||||
"Command took {}.",
|
||||
.{value.duration.round(std.time.ns_per_ms)},
|
||||
0,
|
||||
) catch break :notify;
|
||||
break :body std.fmt.allocPrintZ(
|
||||
break :body std.fmt.allocPrintSentinel(
|
||||
alloc,
|
||||
"Command took {} and exited with code {d}.",
|
||||
.{ value.duration.round(std.time.ns_per_ms), exit_code },
|
||||
0,
|
||||
) catch break :notify;
|
||||
};
|
||||
defer alloc.free(body);
|
||||
|
||||
Reference in New Issue
Block a user