mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Do not fire name timer when automatic-rename is off, from Tim Ruehsen a
while ago.
This commit is contained in:
		
							
								
								
									
										4
									
								
								names.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								names.c
									
									
									
									
									
								
							@@ -49,9 +49,7 @@ window_name_callback(unused int fd, unused short events, void *data)
 | 
			
		||||
	struct window	*w = data;
 | 
			
		||||
	char		*name, *wname;
 | 
			
		||||
 | 
			
		||||
	queue_window_name(w);	/* XXX even if the option is off? */
 | 
			
		||||
	if (!options_get_number(&w->options, "automatic-rename"))
 | 
			
		||||
		return;
 | 
			
		||||
	queue_window_name(w); /* stopped when option turned off */
 | 
			
		||||
 | 
			
		||||
	if (w->active->screen != &w->active->base)
 | 
			
		||||
		name = NULL;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user