mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Sync OpenBSD patchset 375:
When a window is zombified and automatic-rename is on, append [dead] to the name.
This commit is contained in:
		
							
								
								
									
										8
									
								
								names.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								names.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: names.c,v 1.16 2009-09-20 22:11:27 tcunha Exp $ */
 | 
			
		||||
/* $Id: names.c,v 1.17 2009-10-12 00:03:04 tcunha Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -73,6 +73,12 @@ set_window_names(void)
 | 
			
		||||
			xfree(name);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (w->active->fd == -1) {
 | 
			
		||||
			xasprintf(&name, "%s[dead]", wname);
 | 
			
		||||
			xfree(wname);
 | 
			
		||||
			wname = name;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (strcmp(wname, w->name) == 0)
 | 
			
		||||
			xfree(wname);
 | 
			
		||||
		else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user