summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-16 16:16:07 +0000
committernicm <nicm>2020-05-16 16:16:07 +0000
commitc914abfa19938fe0e41941879649b7a40e192082 (patch)
tree54b011ea618aeb84835cf64a937a08c74f846b5d /server-client.c
parent72984c48347ddfd1d435f8a9ffcdf334c4b28389 (diff)
Expand target from client and use it to expand the prompt.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/server-client.c b/server-client.c
index f42c9843..1e0d992d 100644
--- a/server-client.c
+++ b/server-client.c
@@ -213,7 +213,6 @@ server_client_create(int fd)
c->queue = cmdq_new();
c->tty.fd = -1;
-
c->tty.sx = 80;
c->tty.sy = 24;
@@ -272,7 +271,7 @@ server_client_open(struct client *c, char **cause)
void
server_client_lost(struct client *c)
{
- struct client_file *cf;
+ struct client_file *cf, *cf1;
c->flags |= CLIENT_DEAD;
@@ -280,7 +279,7 @@ server_client_lost(struct client *c)
status_prompt_clear(c);
status_message_clear(c);
- RB_FOREACH(cf, client_files, &c->files) {
+ RB_FOREACH_SAFE(cf, client_files, &c->files, cf1) {
cf->error = EINTR;
file_fire_done(cf);
}
@@ -2250,7 +2249,7 @@ server_client_set_flags(struct client *c, const char *flags)
}
-/*Get client flags. This is only flags useful to show to users. */
+/* Get client flags. This is only flags useful to show to users. */
const char *
server_client_get_flags(struct client *c)
{