diff options
author | 2019-03-18 14:10:25 +0000 | |
---|---|---|
committer | 2019-03-18 14:10:25 +0000 | |
commit | 71431f24a7c77d16abf872da635f23c689a953c1 (patch) | |
tree | e731dde25753c248d347a88b21d992a690f5250e /usr.bin/tmux/window.c | |
parent | Insert a missing input line break after a .Vt macro; (diff) | |
download | wireguard-openbsd-71431f24a7c77d16abf872da635f23c689a953c1.tar.xz wireguard-openbsd-71431f24a7c77d16abf872da635f23c689a953c1.zip |
Add format variables for the default formats for the various modes
(tree_mode_format and so on) and add a -a flag to display-message to
list variables with values.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r-- | usr.bin/tmux/window.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index ccc9c5a6d2c..6f4adbc51f3 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.221 2019/03/14 09:53:52 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.222 2019/03/18 14:10:25 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -62,6 +62,17 @@ static u_int next_window_pane_id; static u_int next_window_id; static u_int next_active_point; +/* List of window modes. */ +const struct window_mode *all_window_modes[] = { + &window_buffer_mode, + &window_client_mode, + &window_clock_mode, + &window_copy_mode, + &window_tree_mode, + &window_view_mode, + NULL +}; + static void window_destroy(struct window *); static struct window_pane *window_pane_create(struct window *, u_int, u_int, |