aboutsummaryrefslogtreecommitdiff
path: root/server-client.c
diff options
context:
space:
mode:
authornicm <nicm>2018-08-29 09:50:32 +0000
committernicm <nicm>2018-08-29 09:50:32 +0000
commitf57aa143c162679555c4713ca94b7f2c60aa6bf4 (patch)
tree791be3db6c5228ed7cb04899cf89aa92bf521a42 /server-client.c
parente53094bc5f302d697661e06cea1eeade27449f23 (diff)
downloadrtmux-f57aa143c162679555c4713ca94b7f2c60aa6bf4.tar.gz
rtmux-f57aa143c162679555c4713ca94b7f2c60aa6bf4.tar.bz2
rtmux-f57aa143c162679555c4713ca94b7f2c60aa6bf4.zip
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 'server-client.c')
-rw-r--r--server-client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server-client.c b/server-client.c
index 596b12e7..32b51c50 100644
--- a/server-client.c
+++ b/server-client.c
@@ -302,6 +302,7 @@ server_client_lost(struct client *c)
free(msg);
}
+ free(c->prompt_saved);
free(c->prompt_string);
free(c->prompt_buffer);