mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 09:28:51 +00:00
Set up environ properly.
This commit is contained in:
parent
8969a8beaf
commit
ce2dc2a66a
@ -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>
|
||||
@ -45,7 +45,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||
struct cmd_target_data *data = self->data;
|
||||
struct winlink *wl;
|
||||
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)
|
||||
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>
|
||||
@ -191,7 +191,7 @@ struct winlink *
|
||||
session_new(struct session *s, const char *name, const char *cmd, int idx)
|
||||
{
|
||||
struct window *w;
|
||||
const char *env[] = { NULL, "TERM=screen", NULL };
|
||||
const char *env[] = { NULL /* TMUX= */, "TERM=screen", NULL };
|
||||
char buf[256];
|
||||
u_int i, hlimit;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user