diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-12-31 20:00:45 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-12-31 20:00:45 +0000 |
commit | 9cb4c1f995b7bc472d7ce87a16e63a39f3c9c834 (patch) | |
tree | 4e7428148b807dc308430352e26a1b77c155dba5 /usr.bin | |
parent | 0371325427c9335541f6a677274ad6baeea60c17 (diff) |
Initialize the size of new panes created by the even-* layout correctly;
reported by Andreas Kahari and Anton Lindqvist.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/layout-set.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/layout-set.c b/usr.bin/tmux/layout-set.c index 4c6d15a07df..5ac30d49c8f 100644 --- a/usr.bin/tmux/layout-set.c +++ b/usr.bin/tmux/layout-set.c @@ -1,4 +1,4 @@ -/* $OpenBSD: layout-set.c,v 1.19 2017/11/15 19:59:27 nicm Exp $ */ +/* $OpenBSD: layout-set.c,v 1.20 2017/12/31 20:00:44 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -138,6 +138,8 @@ layout_set_even(struct window *w, enum layout_type type) TAILQ_FOREACH(wp, &w->panes, entry) { lcnew = layout_create_cell(lc); layout_make_leaf(lcnew, wp); + lcnew->sx = w->sx; + lcnew->sy = w->sy; TAILQ_INSERT_TAIL(&lc->cells, lcnew, entry); } |