widgets(terminal): append last byte to escape seqs

This commit is contained in:
Tim Culverhouse 2024-06-07 12:51:45 -05:00
parent 987f939bd8
commit f9d2fc7532

View file

@ -81,7 +81,10 @@ inline fn parseEscape(self: *Parser, reader: Reader) !Event {
const b = try reader.readByte();
switch (b) {
0x20...0x2F => continue,
else => return .{ .escape = self.buf.items },
else => {
try self.buf.append(b);
return .{ .escape = self.buf.items };
},
}
}
}