From 5a056bca51d35653212a6525e34b20fdb02c2ed3 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 7 May 2017 22:27:58 +0000 Subject: Add a format for the name of the pane's mode, lets it be used as a conditional for key bindings. --- usr.bin/tmux/window-clock.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/tmux/window-clock.c') 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 @@ -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, -- cgit v1.2.3