mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Set up environ properly.
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* $Id: cmd-respawn-window.c,v 1.2 2008-06-30 18:45:02 nicm Exp $ */
 | 
					/* $Id: cmd-respawn-window.c,v 1.3 2008-06-30 19:11:33 nicm Exp $ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
					 * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
				
			||||||
@@ -45,7 +45,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
				
			|||||||
	struct cmd_target_data	*data = self->data;
 | 
						struct cmd_target_data	*data = self->data;
 | 
				
			||||||
	struct winlink		*wl;
 | 
						struct winlink		*wl;
 | 
				
			||||||
	struct session		*s;
 | 
						struct session		*s;
 | 
				
			||||||
	const char		*env[] = { NULL, "TERM=screen", NULL };
 | 
						const char		*env[] = { "TERM=screen", NULL };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((wl = cmd_find_window(ctx, data->target, &s)) == NULL)
 | 
						if ((wl = cmd_find_window(ctx, data->target, &s)) == NULL)
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* $Id: session.c,v 1.40 2008-06-29 07:04:30 nicm Exp $ */
 | 
					/* $Id: session.c,v 1.41 2008-06-30 19:11:33 nicm Exp $ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
					 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
				
			||||||
@@ -191,7 +191,7 @@ struct winlink *
 | 
				
			|||||||
session_new(struct session *s, const char *name, const char *cmd, int idx)
 | 
					session_new(struct session *s, const char *name, const char *cmd, int idx)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct window	*w;
 | 
						struct window	*w;
 | 
				
			||||||
	const char	*env[] = { NULL, "TERM=screen", NULL };
 | 
						const char	*env[] = { NULL /* TMUX= */, "TERM=screen", NULL };
 | 
				
			||||||
	char		 buf[256];
 | 
						char		 buf[256];
 | 
				
			||||||
	u_int		 i, hlimit;
 | 
						u_int		 i, hlimit;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user