aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authornicm <nicm>2019-05-09 08:38:13 +0000
committernicm <nicm>2019-05-09 08:38:13 +0000
commit299b7289ea9b5ae9d5cccc57a87e6c26eb24b181 (patch)
treef57724c3d62d65fbcdb62ad7d2a6844da0595ea4 /format.c
parentf9682d2e558c58117f23f302ce35d9b319151189 (diff)
downloadrtmux-299b7289ea9b5ae9d5cccc57a87e6c26eb24b181.tar.gz
rtmux-299b7289ea9b5ae9d5cccc57a87e6c26eb24b181.tar.bz2
rtmux-299b7289ea9b5ae9d5cccc57a87e6c26eb24b181.zip
Add formats to show if pane is the marked pane and if any marked pane is set.
Diffstat (limited to 'format.c')
-rw-r--r--format.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/format.c b/format.c
index a3a58d92..febf160b 100644
--- a/format.c
+++ b/format.c
@@ -2036,6 +2036,12 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp)
else
format_add(ft, "pane_dead", "0");
+ if (server_check_marked() && marked_pane.wp == wp)
+ format_add(ft, "pane_marked", "1");
+ else
+ format_add(ft, "pane_marked", "0");
+ format_add(ft, "pane_marked_set", "%d", server_check_marked());
+
format_add(ft, "pane_left", "%u", wp->xoff);
format_add(ft, "pane_top", "%u", wp->yoff);
format_add(ft, "pane_right", "%u", wp->xoff + wp->sx - 1);