fix: don't hide terminal cursor when an unfocused primary cursor is off screen

This commit is contained in:
CJ van den Berg 2026-01-19 22:58:43 +01:00
parent 933df0cdd5
commit 45a8f008dd
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -1298,7 +1298,7 @@ pub const Editor = struct {
tui.rdr().cursor_enable(y, x, cursor_shape) catch {}; tui.rdr().cursor_enable(y, x, cursor_shape) catch {};
} }
} else { } else {
if (self.enable_terminal_cursor) { if (focused and self.enable_terminal_cursor) {
tui.rdr().set_terminal_cursor_color(theme.statusbar.bg.?); tui.rdr().set_terminal_cursor_color(theme.statusbar.bg.?);
tui.rdr().cursor_enable(-1, -1, cursor_shape) catch {}; tui.rdr().cursor_enable(-1, -1, cursor_shape) catch {};
} }