widgets(terminal): fix overflow in CUP

This commit is contained in:
Tim Culverhouse 2024-06-09 21:00:40 -05:00
parent aa9e492b26
commit 3a382eacdb

View file

@ -291,8 +291,8 @@ fn run(self: *Terminal) !void {
var iter = seq.iterator(u16);
const row = iter.next() orelse 1;
const col = iter.next() orelse 1;
self.back_screen.cursor.col = col - 1;
self.back_screen.cursor.row = row - 1;
self.back_screen.cursor.col = col -| 1;
self.back_screen.cursor.row = row -| 1;
},
'K' => {
// TODO selective erase (private_marker == '?')