From bb717495857abd2e2edf68c6bde12c3b2cd2bb6d Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Sun, 26 Oct 2025 14:28:03 +0100 Subject: [PATCH] fix: set terminal cursor color even if enable_terminal_color_scheme is false --- src/tui/tui.zig | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/tui/tui.zig b/src/tui/tui.zig index eee435f..6dd5033 100644 --- a/src/tui/tui.zig +++ b/src/tui/tui.zig @@ -1609,12 +1609,11 @@ pub const fallbacks: []const FallBack = &[_]FallBack{ }; fn set_terminal_style(self: *Self, theme_: *const Widget.Theme) void { - if (build_options.gui or self.config_.enable_terminal_color_scheme) { + self.rdr_.set_terminal_cursor_color(theme_.editor_cursor.bg.?); + if (self.rdr_.vx.caps.multi_cursor) + self.rdr_.set_terminal_secondary_cursor_color(theme_.editor_cursor_secondary.bg orelse theme_.editor_cursor.bg.?); + if (build_options.gui or self.config_.enable_terminal_color_scheme) self.rdr_.set_terminal_style(theme_.editor); - self.rdr_.set_terminal_cursor_color(theme_.editor_cursor.bg.?); - if (self.rdr_.vx.caps.multi_cursor) - self.rdr_.set_terminal_secondary_cursor_color(theme_.editor_cursor_secondary.bg orelse theme_.editor_cursor.bg.?); - } } pub fn get_cursor_shape() renderer.CursorShape {