diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2013-07-05 15:27:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2013-07-05 15:27:15 +0000 |
commit | 631a5509c3ef08807720b1837d5d01b5bd6a5f1a (patch) | |
tree | 4ce18a22def35fbbf2d89894ee0504a9bbe97e1f /usr.bin/tmux/format.c | |
parent | f5b03bf9816ac419cf655eacd37b3708a312b7ff (diff) |
Add pane_synchronized format, from Romain Francoise.
Diffstat (limited to 'usr.bin/tmux/format.c')
-rw-r--r-- | usr.bin/tmux/format.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/format.c b/usr.bin/tmux/format.c index f979224a133..4a7d5efb4d9 100644 --- a/usr.bin/tmux/format.c +++ b/usr.bin/tmux/format.c @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.25 2013/05/31 19:46:42 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.26 2013/07/05 15:27:14 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott <nicm@users.sourceforge.net> @@ -460,6 +460,8 @@ format_window_pane(struct format_tree *ft, struct window_pane *wp) format_add(ft, "pane_dead", "%d", wp->fd == -1); format_add(ft, "pane_in_mode", "%d", wp->screen != &wp->base); + format_add(ft, "pane_synchronized", "%d", + !!options_get_number(&wp->window->options, "synchronize-panes")); if (wp->tty != NULL) format_add(ft, "pane_tty", "%s", wp->tty); |