summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window-buffer.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-05-16 14:10:29 +0000
committernicm <nicm@openbsd.org>2020-05-16 14:10:29 +0000
commit6c6f347ca047d5b2d6a0f1201fd2201c2919c05b (patch)
tree977cb95427da0f13824e9567b2d04a08b6bb412d /usr.bin/tmux/window-buffer.c
parentSimplify: _BSDMP was only used once. (diff)
downloadwireguard-openbsd-6c6f347ca047d5b2d6a0f1201fd2201c2919c05b.tar.xz
wireguard-openbsd-6c6f347ca047d5b2d6a0f1201fd2201c2919c05b.zip
Tweak the default choose modes formats:
- Only show pane title if it is not default and not empty. - Add a prettier time format and use that instead of long ctime(). - Remove clutter and change the order.
Diffstat (limited to 'usr.bin/tmux/window-buffer.c')
-rw-r--r--usr.bin/tmux/window-buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window-buffer.c b/usr.bin/tmux/window-buffer.c
index 0398b3799c3..f2b91633c26 100644
--- a/usr.bin/tmux/window-buffer.c
+++ b/usr.bin/tmux/window-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-buffer.c,v 1.26 2020/04/09 13:52:31 nicm Exp $ */
+/* $OpenBSD: window-buffer.c,v 1.27 2020/05/16 14:10:29 nicm Exp $ */
/*
* Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -37,7 +37,7 @@ static void window_buffer_key(struct window_mode_entry *,
#define WINDOW_BUFFER_DEFAULT_COMMAND "paste-buffer -b '%%'"
#define WINDOW_BUFFER_DEFAULT_FORMAT \
- "#{buffer_size} bytes (#{t:buffer_created})"
+ "#{t/p:buffer_created}: #{buffer_sample}"
static const struct menu_item window_buffer_menu_items[] = {
{ "Paste", 'p', NULL },