From 1c524238c837cbd0d550a2e74af6df6e6235794a Mon Sep 17 00:00:00 2001 From: Qwerasd Date: Mon, 10 Feb 2025 13:27:26 -0500 Subject: [PATCH] test(terminal/osc): fix command longer than buffer test Ensure that the state is invalidated properly, this previously wasn't the case but was fixed in 03fd9a97 --- src/terminal/osc.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/terminal/osc.zig b/src/terminal/osc.zig index 90dd079a0..faf376d13 100644 --- a/src/terminal/osc.zig +++ b/src/terminal/osc.zig @@ -1660,10 +1660,11 @@ test "OSC: longer than buffer" { var p: Parser = .{}; - const input = "a" ** (Parser.MAX_BUF + 2); + const input = "0;" ++ "a" ** (Parser.MAX_BUF + 2); for (input) |ch| p.next(ch); try testing.expect(p.end(null) == null); + try testing.expect(p.complete == false); } test "OSC: report default foreground color" {