Add formats for top paste buffer by default. Also a tmux.1 fix from jmc.

pull/2142/head
nicm 2020-03-28 09:39:27 +00:00
parent 55b14cdc6a
commit e0b17e796b
2 changed files with 7 additions and 1 deletions

View File

@ -2421,6 +2421,8 @@ void
format_defaults(struct format_tree *ft, struct client *c, struct session *s,
struct winlink *wl, struct window_pane *wp)
{
struct paste_buffer *pb;
if (c != NULL && c->name != NULL)
log_debug("%s: c=%s", __func__, c->name);
else
@ -2460,6 +2462,10 @@ format_defaults(struct format_tree *ft, struct client *c, struct session *s,
format_defaults_winlink(ft, wl);
if (wp != NULL)
format_defaults_pane(ft, wp);
pb = paste_get_top (NULL);
if (pb != NULL)
format_defaults_paste_buffer(ft, pb);
}
/* Set default format keys for a session. */

2
tmux.1
View File

@ -5024,7 +5024,7 @@ It may be empty to discard any key presses.
If
.Fl K
is given together with
.Fl R,
.Fl R ,
key presses are instead passed to the
.Fl R
shell command.