Use -p for default paste-buffer command in buffer mode, it will only do

anything if the application asked for it. From Gregory Anders.
This commit is contained in:
nicm 2024-03-21 11:32:49 +00:00
parent 6c0067c103
commit 0ae8b681b2

View File

@ -36,7 +36,7 @@ static void window_buffer_key(struct window_mode_entry *,
struct client *, struct session *,
struct winlink *, key_code, struct mouse_event *);
#define WINDOW_BUFFER_DEFAULT_COMMAND "paste-buffer -b '%%'"
#define WINDOW_BUFFER_DEFAULT_COMMAND "paste-buffer -p -b '%%'"
#define WINDOW_BUFFER_DEFAULT_FORMAT \
"#{t/p:buffer_created}: #{buffer_sample}"