summaryrefslogtreecommitdiff
path: root/core/exec.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/exec.zig')
-rw-r--r--core/exec.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/exec.zig b/core/exec.zig
index 6a8ef6d8..687faa98 100644
--- a/core/exec.zig
+++ b/core/exec.zig
@@ -322,7 +322,7 @@ pub fn saveFile(p: *Pardes, id: usize) void {
}
f.disk_newer = null;
}
- p.emit(.{ .save_file = .{ .pane = @intCast(id) } });
+ p.emit(.{ .save_file = .{ .pane = .at(id) } });
}
pub fn saveTo(p: *Pardes, id: usize, path: []const u8) void {
@@ -347,7 +347,7 @@ pub fn saveTo(p: *Pardes, id: usize, path: []const u8) void {
// Save that fails changes nothing, the name included.
if (f.output != null and panes.Output.fileTraits(f.output).saves) {
p.emit(.{ .save_text = .{
- .pane = @intCast(id),
+ .pane = .at(id),
.serial = pane.serial,
.path = Pardes.SavePath.from(full),
.promote = true,
@@ -361,7 +361,7 @@ pub fn saveTo(p: *Pardes, id: usize, path: []const u8) void {
fn askWrite(p: *Pardes, id: usize, serial: u32, path: []const u8) void {
p.emit(.{ .save_text = .{
- .pane = @intCast(id),
+ .pane = .at(id),
.serial = serial,
.path = Pardes.SavePath.from(path),
} });