summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-05-16 16:16:07 +0000
committernicm <nicm@openbsd.org>2020-05-16 16:16:07 +0000
commit94adf770415cb803237af9a844544f2da66f1f98 (patch)
tree44ced233d9768929dc89d5ec0752a7bd6a908ad2 /usr.bin/tmux/server-client.c
parentMove editor stuff to common code in popup.c. (diff)
downloadwireguard-openbsd-94adf770415cb803237af9a844544f2da66f1f98.tar.xz
wireguard-openbsd-94adf770415cb803237af9a844544f2da66f1f98.zip
Expand target from client and use it to expand the prompt.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 6d807fa994b..a3efa3505f5 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.339 2020/05/16 16:07:55 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.340 2020/05/16 16:16:07 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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)
{