mirror of
https://github.com/tmate-io/tmate.git
synced 2025-02-18 11:20:56 +01:00
-l should apply to the new not the old pane with -b, from "MadMaverick9"
on GitHub.
This commit is contained in:
parent
8b5d5dca9f
commit
6b709e655e
4
layout.c
4
layout.c
@ -686,6 +686,8 @@ layout_split_pane(
|
|||||||
case LAYOUT_LEFTRIGHT:
|
case LAYOUT_LEFTRIGHT:
|
||||||
if (size < 0)
|
if (size < 0)
|
||||||
size2 = ((sx + 1) / 2) - 1;
|
size2 = ((sx + 1) / 2) - 1;
|
||||||
|
else if (insert_before)
|
||||||
|
size2 = sx - size - 1;
|
||||||
else
|
else
|
||||||
size2 = size;
|
size2 = size;
|
||||||
if (size2 < PANE_MINIMUM)
|
if (size2 < PANE_MINIMUM)
|
||||||
@ -699,6 +701,8 @@ layout_split_pane(
|
|||||||
case LAYOUT_TOPBOTTOM:
|
case LAYOUT_TOPBOTTOM:
|
||||||
if (size < 0)
|
if (size < 0)
|
||||||
size2 = ((sy + 1) / 2) - 1;
|
size2 = ((sy + 1) / 2) - 1;
|
||||||
|
else if (insert_before)
|
||||||
|
size2 = sy - size - 1;
|
||||||
else
|
else
|
||||||
size2 = size;
|
size2 = size;
|
||||||
if (size2 < PANE_MINIMUM)
|
if (size2 < PANE_MINIMUM)
|
||||||
|
Loading…
Reference in New Issue
Block a user