From 45a8f008dd9e65eb759dcfc9f0890c5feb5f0210 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Mon, 19 Jan 2026 22:58:43 +0100 Subject: [PATCH] fix: don't hide terminal cursor when an unfocused primary cursor is off screen --- src/tui/editor.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/editor.zig b/src/tui/editor.zig index 2c9e1ae..4b8d4de 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -1298,7 +1298,7 @@ pub const Editor = struct { tui.rdr().cursor_enable(y, x, cursor_shape) catch {}; } } else { - if (self.enable_terminal_cursor) { + if (focused and self.enable_terminal_cursor) { tui.rdr().set_terminal_cursor_color(theme.statusbar.bg.?); tui.rdr().cursor_enable(-1, -1, cursor_shape) catch {}; }