diff --git a/src/tui/mode/mini/move_to_char.zig b/src/tui/mode/mini/move_to_char.zig index 2432bd6..e9ef5f7 100644 --- a/src/tui/mode/mini/move_to_char.zig +++ b/src/tui/mode/mini/move_to_char.zig @@ -44,15 +44,11 @@ pub fn start(self: *Type) ValueType { return .{ .direction = direction, - .operation_command = self.allocator.dupe(u8, operation_command) catch @panic("OOM in move_to_char"), + .operation_command = operation_command, .operation = operation, }; } -pub fn deinit(self: *Type) void { - self.allocator.free(self.value.operation_command); -} - pub fn name(self: *Type) []const u8 { return switch (self.value.operation) { .move => switch (self.value.direction) {