mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Use global cursor style and colour options for modes instead of default,
GitHub issue 4117.
This commit is contained in:
		
							
								
								
									
										10
									
								
								window.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								window.c
									
									
									
									
									
								
							@@ -1686,15 +1686,7 @@ window_set_fill_character(struct window *w)
 | 
			
		||||
void
 | 
			
		||||
window_pane_default_cursor(struct window_pane *wp)
 | 
			
		||||
{
 | 
			
		||||
	struct screen	*s = wp->screen;
 | 
			
		||||
	int		 c;
 | 
			
		||||
 | 
			
		||||
	c = options_get_number(wp->options, "cursor-colour");
 | 
			
		||||
	s->default_ccolour = c;
 | 
			
		||||
 | 
			
		||||
	c = options_get_number(wp->options, "cursor-style");
 | 
			
		||||
	s->default_mode = 0;
 | 
			
		||||
	screen_set_cursor_style(c, &s->default_cstyle, &s->default_mode);
 | 
			
		||||
	screen_set_default_cursor(wp->screen, wp->options);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user