From d9ca9db5a49f0af2f6bef6f198b28a8d29808e6d Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Tue, 26 May 2020 22:55:07 +0200 Subject: Rework commands to be string based This allows for significantly more flexibility and should make implementing the bind command possible. --- src/Mode.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Mode.zig') diff --git a/src/Mode.zig b/src/Mode.zig index dfc4f54..b63481e 100644 --- a/src/Mode.zig +++ b/src/Mode.zig @@ -38,6 +38,6 @@ pub fn init(name: []const u8, allocator: *std.mem.Allocator) !Self { pub fn deinit(self: Self) void { const allocator = self.keybinds.allocator; allocator.free(self.name); - for (self.keybinds.items) |keybind| keybind.command.deinit(allocator); + for (self.keybinds.items) |keybind| keybind.deinit(allocator); self.keybinds.deinit(); } -- cgit v1.2.3