fix: minor leak in editor format command

This commit is contained in:
CJ van den Berg 2025-09-29 22:30:18 +02:00
parent 2f89dcba8d
commit 32c70f0e47
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -5755,7 +5755,7 @@ pub const Editor = struct {
defer args.deinit();
try cbor.writeArrayHeader(&args.writer, fmtr.len);
for (fmtr) |arg| try cbor.writeValue(&args.writer, arg);
try self.filter_cmd(.{ .buf = try args.toOwnedSlice() });
try self.filter_cmd(.{ .buf = args.written() });
return;
}
return tp.exit("no formatter");