version 1.392, 2022/03/08 12:01:19 |
version 1.393, 2022/03/24 09:05:57 |
|
|
static void server_client_check_redraw(struct client *); |
static void server_client_check_redraw(struct client *); |
static void server_client_check_modes(struct client *); |
static void server_client_check_modes(struct client *); |
static void server_client_set_title(struct client *); |
static void server_client_set_title(struct client *); |
|
static void server_client_set_path(struct client *); |
static void server_client_reset_state(struct client *); |
static void server_client_reset_state(struct client *); |
static int server_client_assume_paste(struct session *); |
static int server_client_assume_paste(struct session *); |
static void server_client_update_latest(struct client *); |
static void server_client_update_latest(struct client *); |
|
|
} |
} |
|
|
if (c->flags & CLIENT_ALLREDRAWFLAGS) { |
if (c->flags & CLIENT_ALLREDRAWFLAGS) { |
if (options_get_number(s->options, "set-titles")) |
if (options_get_number(s->options, "set-titles")) { |
server_client_set_title(c); |
server_client_set_title(c); |
|
server_client_set_path(c); |
|
} |
screen_redraw_screen(c); |
screen_redraw_screen(c); |
} |
} |
|
|
|
|
free(title); |
free(title); |
|
|
format_free(ft); |
format_free(ft); |
|
} |
|
|
|
/* Set client path. */ |
|
static void |
|
server_client_set_path(struct client *c) |
|
{ |
|
struct session *s = c->session; |
|
const char *path; |
|
|
|
if (s->curw == NULL) |
|
return; |
|
if (s->curw->window->active->base.path == NULL) |
|
path = ""; |
|
else |
|
path = s->curw->window->active->base.path; |
|
if (c->path == NULL || strcmp(path, c->path) != 0) { |
|
free(c->path); |
|
c->path = xstrdup(path); |
|
tty_set_path(&c->tty, c->path); |
|
} |
} |
} |
|
|
/* Dispatch message from client. */ |
/* Dispatch message from client. */ |