From 3a382eacdb076eba0e74fe7fbb6b4a95adc11d73 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Sun, 9 Jun 2024 21:00:40 -0500 Subject: [PATCH] widgets(terminal): fix overflow in CUP --- src/widgets/terminal/Terminal.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/terminal/Terminal.zig b/src/widgets/terminal/Terminal.zig index 7f53913..d80534e 100644 --- a/src/widgets/terminal/Terminal.zig +++ b/src/widgets/terminal/Terminal.zig @@ -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 == '?')