mirror of
https://github.com/tmux/tmux.git
synced 2025-09-05 08:07:03 +00:00
Pick up cwd from environment,.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: server-msg.c,v 1.54 2009-01-07 22:57:03 nicm Exp $ */
|
||||
/* $Id: server-msg.c,v 1.55 2009-01-10 19:37:35 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -183,6 +183,10 @@ server_msg_fn_identify(struct hdr *hdr, struct client *c)
|
||||
c->sx = data.sx;
|
||||
c->sy = data.sy;
|
||||
|
||||
c->cwd = NULL;
|
||||
if (*data.cwd != '\0')
|
||||
c->cwd = xstrdup(data.cwd);
|
||||
|
||||
data.tty[(sizeof data.tty) - 1] = '\0';
|
||||
tty_init(&c->tty, data.tty, xstrdup(term));
|
||||
if (data.flags & IDENTIFY_UTF8)
|
||||
|
Reference in New Issue
Block a user