aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-07-27 14:01:13 +0100
committerThomas Adam <thomas@xteddy.org>2017-07-27 14:01:13 +0100
commit147740ed40ae78af2328b7196648d00be8c05dee (patch)
tree3c1ae3624cd5bed340afaabd3f039b235381bac1 /format.c
parent58744de3eb7269d5d8eb778f67812f3f5670536d (diff)
parent3df7c91f1afbf9059800d54c6efd3ae3f051001b (diff)
downloadrtmux-147740ed40ae78af2328b7196648d00be8c05dee.tar.gz
rtmux-147740ed40ae78af2328b7196648d00be8c05dee.tar.bz2
rtmux-147740ed40ae78af2328b7196648d00be8c05dee.zip
Merge branch 'obsd-master'
Diffstat (limited to 'format.c')
-rw-r--r--format.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/format.c b/format.c
index 6d7e5bfe..6d11a39b 100644
--- a/format.c
+++ b/format.c
@@ -1421,6 +1421,10 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp)
format_add(ft, "pane_top", "%u", wp->yoff);
format_add(ft, "pane_right", "%u", wp->xoff + wp->sx - 1);
format_add(ft, "pane_bottom", "%u", wp->yoff + wp->sy - 1);
+ format_add(ft, "pane_at_left", "%d", wp->xoff == 0);
+ format_add(ft, "pane_at_top", "%d", wp->yoff == 0);
+ format_add(ft, "pane_at_right", "%d", wp->xoff + wp->sx == wp->window->sx);
+ format_add(ft, "pane_at_bottom", "%d", wp->yoff + wp->sy == wp->window->sy);
}
format_add(ft, "pane_in_mode", "%d", wp->screen != &wp->base);