mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Add formats for top paste buffer by default. Also a tmux.1 fix from jmc.
This commit is contained in:
parent
55b14cdc6a
commit
e0b17e796b
6
format.c
6
format.c
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user