diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-12-11 16:05:57 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-12-11 16:05:57 +0000 |
commit | 7ce77ffc9c4973197377ecdfa329ba1cdd6af75e (patch) | |
tree | b760fd9b69b826e6e136df5fba658e3c0b3fee65 /server-client.c | |
parent | 6be32c89c5b52f4a07fe9694bc4f899be1389d17 (diff) | |
download | rtmux-7ce77ffc9c4973197377ecdfa329ba1cdd6af75e.tar.gz rtmux-7ce77ffc9c4973197377ecdfa329ba1cdd6af75e.tar.bz2 rtmux-7ce77ffc9c4973197377ecdfa329ba1cdd6af75e.zip |
Make the prompt history global for all clients which is much more useful than per-client history.
Diffstat (limited to 'server-client.c')
-rw-r--r-- | server-client.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/server-client.c b/server-client.c index cd3eb079..80ec0e91 100644 --- a/server-client.c +++ b/server-client.c @@ -70,8 +70,6 @@ server_client_create(int fd) fatal("gettimeofday failed"); memcpy(&c->activity_time, &c->creation_time, sizeof c->activity_time); - ARRAY_INIT(&c->prompt_hdata); - c->stdin_event = NULL; c->stdout_event = NULL; c->stderr_event = NULL; @@ -161,9 +159,6 @@ server_client_lost(struct client *c) xfree(c->prompt_string); if (c->prompt_buffer != NULL) xfree(c->prompt_buffer); - for (i = 0; i < ARRAY_LENGTH(&c->prompt_hdata); i++) - xfree(ARRAY_ITEM(&c->prompt_hdata, i)); - ARRAY_FREE(&c->prompt_hdata); if (c->cwd != NULL) xfree(c->cwd); |