widgets(terminal): append last byte to escape seqs
This commit is contained in:
parent
987f939bd8
commit
f9d2fc7532
1 changed files with 4 additions and 1 deletions
|
@ -81,7 +81,10 @@ inline fn parseEscape(self: *Parser, reader: Reader) !Event {
|
||||||
const b = try reader.readByte();
|
const b = try reader.readByte();
|
||||||
switch (b) {
|
switch (b) {
|
||||||
0x20...0x2F => continue,
|
0x20...0x2F => continue,
|
||||||
else => return .{ .escape = self.buf.items },
|
else => {
|
||||||
|
try self.buf.append(b);
|
||||||
|
return .{ .escape = self.buf.items };
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue