From 763d2a14a392d480b48e6e3678bb04ed7b949e64 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Sun, 30 Jun 2024 11:53:16 -0500 Subject: [PATCH] fix: correct param order for mode 2048 response --- src/Parser.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Parser.zig b/src/Parser.zig index a08761e..f87c7ac 100644 --- a/src/Parser.zig +++ b/src/Parser.zig @@ -478,10 +478,11 @@ inline fn parseCsi(input: []const u8, text_buf: []u8) Result { const ps = iter.first(); if (std.mem.eql(u8, "48", ps)) { // in band window resize - const width_char = iter.next() orelse return null_event; + // CSI 48 ; height ; width ; height_pix ; width_pix t const height_char = iter.next() orelse return null_event; - const width_pix = iter.next() orelse "0"; + const width_char = iter.next() orelse return null_event; const height_pix = iter.next() orelse "0"; + const width_pix = iter.next() orelse "0"; const winsize: Winsize = .{ .rows = std.fmt.parseUnsigned(usize, height_char, 10) catch return null_event,