diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-12-11 16:05:58 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-12-11 16:05:58 +0000 |
commit | 8bc92ee092eadaa0b6814a734d1fc2635ef76eb9 (patch) | |
tree | 92fe6d2a7479a93b5a5f6182405360e01cba9173 /usr.bin/tmux/server-client.c | |
parent | 78b3dd3594e0bd21bb808fbd71d461795466e016 (diff) |
Make the prompt history global for all clients which is much more useful than per-client history.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r-- | usr.bin/tmux/server-client.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index d2d8932effc..fc33dfad98e 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.42 2010/10/16 08:31:55 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.43 2010/12/11 16:05:57 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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); |