summaryrefslogtreecommitdiff
path: root/src/Dir.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-21 17:25:52 -0300
committerGabriel Schneider <[email protected]>2026-10-22 10:03:15 -0300
commit23518c9d7c061f8a06f6632da8b64b37801b514f (patch)
tree1f9688a5c2b2c224f47dd538ffab275b1f54da5c /src/Dir.zig
parentbc3d18d27f9fc1155db7fac3946c4d38774f9e65 (diff)
downloadpardes-23518c9d7c061f8a06f6632da8b64b37801b514f.tar.gz
pardes-23518c9d7c061f8a06f6632da8b64b37801b514f.zip
zig fmt for Zig 0.17
Diffstat (limited to 'src/Dir.zig')
-rw-r--r--src/Dir.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Dir.zig b/src/Dir.zig
index 36895bda..b994bc06 100644
--- a/src/Dir.zig
+++ b/src/Dir.zig
@@ -463,10 +463,10 @@ test "over 9P a directory pane is a text pane whose name ends in /, its body the
defer s.p.deinit();
const p = s.p;
var line_buf: [4200]u8 = undefined;
- _ = th.wr(p, @intFromEnum(tree.TopFile.look), try std.fmt.bufPrint(&line_buf, "{s}\n", .{s.dir}));
+ _ = th.wr(p, @backingInt(tree.TopFile.look), try std.fmt.bufPrint(&line_buf, "{s}\n", .{s.dir}));
p.sync();
const pane = p.panes[p.active].?;
- const index = th.rd(p, @intFromEnum(tree.TopFile.index), 0, 8192).bytes;
+ const index = th.rd(p, @backingInt(tree.TopFile.index), 0, 8192).bytes;
try testing.expect(std.mem.indexOf(u8, index, try std.fmt.bufPrint(&line_buf, "{d} text 0 {s}/ ", .{ pane.serial, s.dir })) != null);
try testing.expectEqualStrings(".dot sub/ top.txt\n", th.rd(p, tree.Node.of(pane.serial, .body), 0, 4096).bytes);
var fields = std.mem.tokenizeScalar(u8, th.rd(p, tree.Node.of(pane.serial, .ctl), 0, 4096).bytes, ' ');