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

1
tmux.h
View File

@ -1358,6 +1358,7 @@ struct client {
void *prompt_data;
u_int prompt_hindex;
enum { PROMPT_ENTRY, PROMPT_COMMAND } prompt_mode;
struct utf8_data *prompt_saved;
#define PROMPT_SINGLE 0x1
#define PROMPT_NUMERIC 0x2