fix: set terminal cursor color even if enable_terminal_color_scheme is false
This commit is contained in:
		
							parent
							
								
									d3371d91e6
								
							
						
					
					
						commit
						bb71749585
					
				
					 1 changed files with 4 additions and 5 deletions
				
			
		|  | @ -1609,12 +1609,11 @@ pub const fallbacks: []const FallBack = &[_]FallBack{ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| fn set_terminal_style(self: *Self, theme_: *const Widget.Theme) void { | 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_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 { | pub fn get_cursor_shape() renderer.CursorShape { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue