I think this fixes it:
Index: layout.c
===================================================================
RCS file: /cvs/src/usr.bin/tmux/layout.c,v
retrieving revision 1.34
diff -u -p -r1.34 layout.c
--- layout.c 12 Jan 2018 10:16:03 -0000 1.34
+++ layout.c 22 Mar 2018 14:26:21 -0000
@@ -1023,7 +1023,7 @@ layout_spread_cell(struct window *w, str
changed = 0;
TAILQ_FOREACH (lc, &parent->cells, entry) {
if (TAILQ_NEXT(lc, entry) == NULL)
- each = size - (each * (number - 1));
+ each = size - ((each + 1) * (number - 1));
change = 0;
if (parent->type == LAYOUT_LEFTRIGHT) {
change = each - (int)lc->sx;
On Thu, Mar 22, 2018 at 02:59:36PM +0100, Thomas Sattler wrote:
> Hi there ...
>
> the following command creates a broken layout:
>
> $ tmux-2.7-rc new-session \; split-window \; split-window \; select-layout
> -E \; select-pane -t 1 \; split-window -h \; split-window -h \; select-pane
> -t 2 \; select-layout -E \; split-window \; split-window \; select-layout -E
>
> It looks like this:
>
> +--------------------------------------------------------------+
> | $ |
> | |
> | |
> | |
> | |
> | |
> | |
> | |
> +--------------------+--------------------+--------------------+
> | $ | $ | $ |
> | | | |
> | +--------------------+ |
> | | $ | |
> | | | |
> | +--------------------+ |
> | | $ | |
> | | | |
> +--------------------| |--------------------+
> | $ |
> | |
> | |
> | |
> | |
> | |
> | |
> | |
> +--------------------------------------------------------------+
> +--------------------------------------------------------------+
>
> A simplified version is
>
> $ tmux-2.7-rc new-session \; split-window \; select-layout -E \; select-pane
> -t 0 \; split-window -h \; select-pane -t 1 \; select-layout -E \;
> split-window \; select-layout -E
>
> which results in
>
> +------------------------------+-------------------------------+
> | $ | $ |
> | | |
> | | |
> | +-------------------------------+
> | | $ |
> | | |
> +------------------------------| |
> | $ +
> | |
> | |
> | |
> | |
> | |
> +--------------------------------------------------------------+
> +--------------------------------------------------------------+
>
> Thomas
>
> --
> You received this message because you are subscribed to the Google Groups
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send an email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.