mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
Merge branch 'obsd-master'
This commit is contained in:
4
format.c
4
format.c
@ -1052,6 +1052,7 @@ void
|
||||
format_defaults_client(struct format_tree *ft, struct client *c)
|
||||
{
|
||||
struct session *s;
|
||||
const char *name;
|
||||
|
||||
if (ft->s == NULL)
|
||||
ft->s = c->session;
|
||||
@ -1069,7 +1070,8 @@ format_defaults_client(struct format_tree *ft, struct client *c)
|
||||
format_add_tv(ft, "client_created", &c->creation_time);
|
||||
format_add_tv(ft, "client_activity", &c->activity_time);
|
||||
|
||||
if (strcmp(c->keytable->name, "root") == 0)
|
||||
name = server_client_get_key_table(c);
|
||||
if (strcmp(c->keytable->name, name) == 0)
|
||||
format_add(ft, "client_prefix", "%d", 0);
|
||||
else
|
||||
format_add(ft, "client_prefix", "%d", 1);
|
||||
|
Reference in New Issue
Block a user