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 {