mirror of
https://github.com/tmux/tmux.git
synced 2026-06-04 00:56:17 +00:00
Allow new floating panes to be created off left side of window.
This commit is contained in:
12
layout.c
12
layout.c
@@ -1302,8 +1302,8 @@ layout_get_floating_cell(struct cmdq_item *item, struct args *args,
|
|||||||
struct window *w, __unused struct window_pane *wp, struct layout_cell *lc,
|
struct window *w, __unused struct window_pane *wp, struct layout_cell *lc,
|
||||||
char **cause)
|
char **cause)
|
||||||
{
|
{
|
||||||
u_int sx, sy, ox, oy;
|
u_int sx, sy;
|
||||||
int new = 0;
|
int ox, oy, new = 0;
|
||||||
|
|
||||||
if (lc == NULL) {
|
if (lc == NULL) {
|
||||||
lc = layout_create_cell(NULL);
|
lc = layout_create_cell(NULL);
|
||||||
@@ -1326,14 +1326,14 @@ layout_get_floating_cell(struct cmdq_item *item, struct args *args,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
if (args_has(args, 'X')) {
|
if (args_has(args, 'X')) {
|
||||||
ox = args_percentage_and_expand(args, 'X', 0, USHRT_MAX, w->sx,
|
ox = args_percentage_and_expand(args, 'X', -USHRT_MAX, USHRT_MAX,
|
||||||
item, cause);
|
w->sx, item, cause);
|
||||||
if (*cause != NULL)
|
if (*cause != NULL)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
if (args_has(args, 'Y')) {
|
if (args_has(args, 'Y')) {
|
||||||
oy = args_percentage_and_expand(args, 'Y', 0, USHRT_MAX, w->sy,
|
oy = args_percentage_and_expand(args, 'Y', -USHRT_MAX, USHRT_MAX,
|
||||||
item, cause);
|
w->sy, item, cause);
|
||||||
if (*cause != NULL)
|
if (*cause != NULL)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user