widgets(terminal): fix overflow in CUP
This commit is contained in:
parent
aa9e492b26
commit
3a382eacdb
1 changed files with 2 additions and 2 deletions
|
@ -291,8 +291,8 @@ fn run(self: *Terminal) !void {
|
||||||
var iter = seq.iterator(u16);
|
var iter = seq.iterator(u16);
|
||||||
const row = iter.next() orelse 1;
|
const row = iter.next() orelse 1;
|
||||||
const col = iter.next() orelse 1;
|
const col = iter.next() orelse 1;
|
||||||
self.back_screen.cursor.col = col - 1;
|
self.back_screen.cursor.col = col -| 1;
|
||||||
self.back_screen.cursor.row = row - 1;
|
self.back_screen.cursor.row = row -| 1;
|
||||||
},
|
},
|
||||||
'K' => {
|
'K' => {
|
||||||
// TODO selective erase (private_marker == '?')
|
// TODO selective erase (private_marker == '?')
|
||||||
|
|
Loading…
Reference in a new issue