mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Turn automatic-rename off properly if turned off by renaming a
window. Reported by Romain Francoise.
This commit is contained in:
		
							
								
								
									
										7
									
								
								names.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								names.c
									
									
									
									
									
								
							@@ -49,7 +49,12 @@ window_name_callback(unused int fd, unused short events, void *data)
 | 
			
		||||
	struct window	*w = data;
 | 
			
		||||
	char		*name, *wname;
 | 
			
		||||
 | 
			
		||||
	queue_window_name(w); /* stopped when option turned off */
 | 
			
		||||
	if (!options_get_number(&w->options, "automatic-rename")) {
 | 
			
		||||
		if (event_initialized(&w->name_timer))
 | 
			
		||||
			event_del(&w->name_timer);
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
	queue_window_name(w);
 | 
			
		||||
 | 
			
		||||
	if (w->active->screen != &w->active->base)
 | 
			
		||||
		name = NULL;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user