From e43f0907ecf02b6a2264c4e2c8a61faeb63aba19 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Thu, 2 May 2024 10:38:39 -0500 Subject: [PATCH] vaxis: fix InternalScreen.writeCell writeCell was clearing the retaining capacity of the wrong arraylist when writing the uri_id. --- src/InternalScreen.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/InternalScreen.zig b/src/InternalScreen.zig index 8ea7007..bb8b8e9 100644 --- a/src/InternalScreen.zig +++ b/src/InternalScreen.zig @@ -96,7 +96,7 @@ pub fn writeCell( self.buf[i].uri.appendSlice(cell.link.uri) catch { log.warn("couldn't write uri", .{}); }; - self.buf[i].uri.clearRetainingCapacity(); + self.buf[i].uri_id.clearRetainingCapacity(); self.buf[i].uri_id.appendSlice(cell.link.params) catch { log.warn("couldn't write uri_id", .{}); };