fix: set terminal cursor color even if enable_terminal_color_scheme is false

This commit is contained in:
CJ van den Berg 2025-10-26 14:28:03 +01:00
parent d3371d91e6
commit bb71749585
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -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 {