Skip to content

Commit

Permalink
Use -p for default paste-buffer command in buffer mode, it will only do
Browse files Browse the repository at this point in the history
anything if the application asked for it. From Gregory Anders.
  • Loading branch information
nicm committed Mar 21, 2024
1 parent 6c0067c commit 0ae8b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion window-buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 0ae8b68

Please sign in to comment.