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@.
This commit is contained in:
nicm
2018-08-29 09:50:32 +00:00
parent e53094bc5f
commit f57aa143c1
3 changed files with 32 additions and 14 deletions

View File

@@ -302,6 +302,7 @@ server_client_lost(struct client *c)
free(msg);
}
free(c->prompt_saved);
free(c->prompt_string);
free(c->prompt_buffer);