mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Make window options work the same was as session options, add mode-fg/mode-bg options, force -g for global on set/show/setw/showw/
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: session.c,v 1.46 2008-11-16 13:28:59 nicm Exp $ */
|
||||
/* $Id: session.c,v 1.47 2008-12-08 16:19:51 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -207,11 +207,6 @@ session_new(struct session *s, const char *name, const char *cmd, int idx)
|
||||
if ((w = window_create(name, cmd, env, s->sx, s->sy, hlimit)) == NULL)
|
||||
return (NULL);
|
||||
|
||||
if (options_get_number(&s->options, "remain-by-default"))
|
||||
w->flags |= WINDOW_ZOMBIFY;
|
||||
if (options_get_number(&s->options, "utf8-default"))
|
||||
w->flags |= WINDOW_UTF8;
|
||||
|
||||
return (session_attach(s, w, idx));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user