summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2018-08-29 09:50:33 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2018-08-29 09:50:33 +0000
commite210cde9dbe8c566767aa48948cbeb623284a2dd (patch)
treea8ac93c47ee18841c4ff43901fd15c920fb1dc31 /usr.bin/tmux/server-client.c
parentfdb53d4311fb187bc514e33a669683275ad95df7 (diff)
Keep any text killed in the command prompt with C-w and yank it with
C-y, only use the top buffer if no text has previously been killed. This and previous change promped by discussion with kn@.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 6c348902167..bd1bea079b7 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.258 2018/08/22 20:06:14 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.259 2018/08/29 09:50:32 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -302,6 +302,7 @@ server_client_lost(struct client *c)
free(msg);
}
+ free(c->prompt_saved);
free(c->prompt_string);
free(c->prompt_buffer);