From eeb69f012af0b50d38f2b243a1b1ec1a4330bd0f Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Tue, 11 Jun 2024 10:28:07 -0500 Subject: [PATCH] widgets(terminal): fix cursor showing --- src/widgets/terminal/Terminal.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/widgets/terminal/Terminal.zig b/src/widgets/terminal/Terminal.zig index fafc653..d2537c2 100644 --- a/src/widgets/terminal/Terminal.zig +++ b/src/widgets/terminal/Terminal.zig @@ -204,10 +204,10 @@ pub fn draw(self: *Terminal, win: vaxis.Window) !void { } } - // if (self.mode.cursor) { - win.setCursorShape(self.front_screen.cursor.shape); - win.showCursor(self.front_screen.cursor.col, self.front_screen.cursor.row); - // } else win.hideCursor(); + if (self.mode.cursor) { + win.setCursorShape(self.front_screen.cursor.shape); + win.showCursor(self.front_screen.cursor.col, self.front_screen.cursor.row); + } else win.hideCursor(); } pub fn tryEvent(self: *Terminal) ?Event {