mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Add a cursor-colour option, from Alexis Hildebrandt in GitHub issue
2959.
This commit is contained in:
		@@ -1106,15 +1106,22 @@ options_push_changes(const char *name)
 | 
			
		||||
	struct session		*s;
 | 
			
		||||
	struct window		*w;
 | 
			
		||||
	struct window_pane	*wp;
 | 
			
		||||
	int			 c;
 | 
			
		||||
 | 
			
		||||
	if (strcmp(name, "automatic-rename") == 0) {
 | 
			
		||||
		RB_FOREACH(w, windows, &windows) {
 | 
			
		||||
			if (w->active == NULL)
 | 
			
		||||
				continue;
 | 
			
		||||
			if (options_get_number(w->options, "automatic-rename"))
 | 
			
		||||
			if (options_get_number(w->options, name))
 | 
			
		||||
				w->active->flags |= PANE_CHANGED;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if (strcmp(name, "cursor-colour") == 0) {
 | 
			
		||||
		RB_FOREACH(wp, window_pane_tree, &all_window_panes) {
 | 
			
		||||
			c = options_get_number(wp->options, name);
 | 
			
		||||
			wp->screen->default_ccolour = c;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if (strcmp(name, "key-table") == 0) {
 | 
			
		||||
		TAILQ_FOREACH(loop, &clients, entry)
 | 
			
		||||
			server_client_set_key_table(loop, NULL);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user