summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-12-11 16:05:57 +0000
committernicm <nicm@openbsd.org>2010-12-11 16:05:57 +0000
commit4ee77f137ceec27affbc8e46dc597635b6908aad (patch)
tree6c8784c0fd13b33dbeb46847f078401d07950144 /usr.bin/tmux/server-client.c
parentMake SYNOPSIS sections and code having .nr nS enabled (diff)
downloadwireguard-openbsd-4ee77f137ceec27affbc8e46dc597635b6908aad.tar.xz
wireguard-openbsd-4ee77f137ceec27affbc8e46dc597635b6908aad.zip
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.c7
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);