working on more zig breaking changes

This commit is contained in:
Mitchell Hashimoto
2024-04-11 09:21:51 -04:00
parent d8cc05317a
commit 595f24585e
17 changed files with 83 additions and 94 deletions

View File

@@ -145,8 +145,8 @@ pub const Container = union(enum) {
pub fn split(self: Container) ?*Split {
return switch (self) {
.none, .tab_ => null,
.split_tl => |ptr| @fieldParentPtr(Split, "top_left", ptr),
.split_br => |ptr| @fieldParentPtr(Split, "bottom_right", ptr),
.split_tl => |ptr| @fieldParentPtr("top_left", ptr),
.split_br => |ptr| @fieldParentPtr("bottom_right", ptr),
};
}