Re: tmux 2.7-rc

2018-03-22 Thread Thomas Sattler

Am 22.03.2018 um 15:27 schrieb Nicholas Marriott:

I think this fixes it:


Seems to be fixed.

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 tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: tmux 2.7-rc

2018-03-22 Thread Nicholas Marriott
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.c12 Jan 2018 10:16:03 -  1.34
+++ layout.c22 Mar 2018 14:26:21 -
@@ -1023,7 +1023,7 @@ layout_spread_cell(struct window *w, str
changed = 0;
TAILQ_FOREACH (lc, >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 tmux-users+unsubscr...@googlegroups.com.
> To post to this group, 

Re: tmux 2.7-rc

2018-03-22 Thread Thomas Sattler

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 tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


tmux 2.7-rc

2018-03-22 Thread Nicholas Marriott
Hi all

I have the first 2.7 release candidate:

https://github.com/tmux/tmux/releases/tag/2.7

https://github.com/tmux/tmux/releases/download/2.7/tmux-2.7-rc.tar.gz

https://raw.githubusercontent.com/tmux/tmux/2.7/CHANGES

As always please test and report any issues.

Thanks

-- 
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 tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.