summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window-clock.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-05-07 22:27:58 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-05-07 22:27:58 +0000
commit5a056bca51d35653212a6525e34b20fdb02c2ed3 (patch)
tree877da116ca8b81be94bb2773254a545f12b8b533 /usr.bin/tmux/window-clock.c
parentdcac06de0dc2df6349306501b549bb1b7c412cc3 (diff)
Add a format for the name of the pane's mode, lets it be used as a
conditional for key bindings.
Diffstat (limited to 'usr.bin/tmux/window-clock.c')
-rw-r--r--usr.bin/tmux/window-clock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/window-clock.c b/usr.bin/tmux/window-clock.c
index 79c40e7d619..168cbd0bf93 100644
--- a/usr.bin/tmux/window-clock.c
+++ b/usr.bin/tmux/window-clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-clock.c,v 1.22 2017/01/07 15:28:13 nicm Exp $ */
+/* $OpenBSD: window-clock.c,v 1.23 2017/05/07 22:27:57 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -34,6 +34,8 @@ static void window_clock_timer_callback(int, short, void *);
static void window_clock_draw_screen(struct window_pane *);
const struct window_mode window_clock_mode = {
+ .name = "clock-mode",
+
.init = window_clock_init,
.free = window_clock_free,
.resize = window_clock_resize,