mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Remove the KERN_PROC_CWD the proc_current_path format (which is the only
thing that uses it now).
This commit is contained in:
		
							
								
								
									
										5
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								format.c
									
									
									
									
									
								
							@@ -518,7 +518,6 @@ format_window_pane(struct format_tree *ft, struct window_pane *wp)
 | 
			
		||||
	struct grid_line	*gl;
 | 
			
		||||
	unsigned long long	 size;
 | 
			
		||||
	u_int			 i, idx;
 | 
			
		||||
	const char		*cwd;
 | 
			
		||||
	char			*cmd;
 | 
			
		||||
 | 
			
		||||
	size = 0;
 | 
			
		||||
@@ -551,9 +550,7 @@ format_window_pane(struct format_tree *ft, struct window_pane *wp)
 | 
			
		||||
	format_add(ft, "pane_pid", "%ld", (long) wp->pid);
 | 
			
		||||
	if (wp->cmd != NULL)
 | 
			
		||||
		format_add(ft, "pane_start_command", "%s", wp->cmd);
 | 
			
		||||
	if ((cwd = get_proc_cwd(wp->fd)) != NULL)
 | 
			
		||||
		format_add(ft, "pane_current_path", "%s", cwd);
 | 
			
		||||
	if ((cmd = get_proc_name(wp->fd, wp->tty)) != NULL) {
 | 
			
		||||
	if ((cmd = format_get_command(wp)) != NULL) {
 | 
			
		||||
		format_add(ft, "pane_current_command", "%s", cmd);
 | 
			
		||||
		free(cmd);
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user