summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window-clock.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-05-07 22:27:57 +0000
committernicm <nicm@openbsd.org>2017-05-07 22:27:57 +0000
commit4fad4d3171287dafab4bd76aed0d97b46562cb18 (patch)
tree37cbbb55e6fa92e7e34b9a6c806d20727177428e /usr.bin/tmux/window-clock.c
parentimplement .DT in terms of .ta; needed for print/ghostview, for example (diff)
downloadwireguard-openbsd-4fad4d3171287dafab4bd76aed0d97b46562cb18.tar.xz
wireguard-openbsd-4fad4d3171287dafab4bd76aed0d97b46562cb18.zip
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,