widgets(terminal): fix cursor showing

This commit is contained in:
Tim Culverhouse 2024-06-11 10:28:07 -05:00
parent 05f52ed4ee
commit eeb69f012a

View file

@ -204,10 +204,10 @@ pub fn draw(self: *Terminal, win: vaxis.Window) !void {
} }
} }
// if (self.mode.cursor) { if (self.mode.cursor) {
win.setCursorShape(self.front_screen.cursor.shape); win.setCursorShape(self.front_screen.cursor.shape);
win.showCursor(self.front_screen.cursor.col, self.front_screen.cursor.row); win.showCursor(self.front_screen.cursor.col, self.front_screen.cursor.row);
// } else win.hideCursor(); } else win.hideCursor();
} }
pub fn tryEvent(self: *Terminal) ?Event { pub fn tryEvent(self: *Terminal) ?Event {