aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-09-13 04:01:25 +0100
committerThomas Adam <thomas@xteddy.org>2019-09-13 04:01:25 +0100
commita5e36a4bd6b81678e419dfc18ec6cec30fb415ad (patch)
tree7aaf5b354e5d5176f9f1f242d4a2fb52a3470c5b
parent658ecb0777bd1dea90fe50bc55381340e2eb7a37 (diff)
parenta23ce1b45ff8b8999e2817c9e747188c559725e1 (diff)
downloadrtmux-a5e36a4bd6b81678e419dfc18ec6cec30fb415ad.tar.gz
rtmux-a5e36a4bd6b81678e419dfc18ec6cec30fb415ad.tar.bz2
rtmux-a5e36a4bd6b81678e419dfc18ec6cec30fb415ad.zip
Merge branch 'obsd-master'
-rw-r--r--format.c5
-rw-r--r--tmux.11
2 files changed, 6 insertions, 0 deletions
diff --git a/format.c b/format.c
index 8395f43a..2e041e6d 100644
--- a/format.c
+++ b/format.c
@@ -2213,6 +2213,11 @@ format_defaults_winlink(struct format_tree *ft, struct winlink *wl)
format_add(ft, "window_end_flag", "%d",
!!(wl == RB_MAX(winlinks, &s->windows)));
+ if (server_check_marked() && marked_pane.wl == wl)
+ format_add(ft, "window_marked_flag", "1");
+ else
+ format_add(ft, "window_marked_flag", "0");
+
format_add(ft, "window_bell_flag", "%d",
!!(wl->flags & WINLINK_BELL));
format_add(ft, "window_activity_flag", "%d",
diff --git a/tmux.1 b/tmux.1
index 04149c36..016c8440 100644
--- a/tmux.1
+++ b/tmux.1
@@ -4312,6 +4312,7 @@ The following variables are available, where appropriate:
.It Li "window_last_flag" Ta "" Ta "1 if window is the last used"
.It Li "window_layout" Ta "" Ta "Window layout description, ignoring zoomed window panes"
.It Li "window_linked" Ta "" Ta "1 if window is linked across sessions"
+.It Li "window_marked_flag" Ta "" Ta "1 if window contains the marked pane"
.It Li "window_name" Ta "#W" Ta "Name of window"
.It Li "window_offset_x" Ta "" Ta "X offset into window if larger than client"
.It Li "window_offset_y" Ta "" Ta "Y offset into window if larger than client"