mirror of
https://github.com/tmux/tmux.git
synced 2026-10-11 04:44:25 +00:00
Add some missing checks which make new pane positions off, from Dane
Jensen.
This commit is contained in:
4
layout.c
4
layout.c
@@ -1730,7 +1730,7 @@ layout_floating_args_parse(struct cmdq_item *item, struct args *args,
|
|||||||
ox = 4;
|
ox = 4;
|
||||||
}
|
}
|
||||||
w->last_new_pane_x = ox;
|
w->last_new_pane_x = ox;
|
||||||
} else
|
} else if (args_has(args, 'X'))
|
||||||
if (lines != PANE_LINES_NONE)
|
if (lines != PANE_LINES_NONE)
|
||||||
ox += 1;
|
ox += 1;
|
||||||
if (oy == INT_MAX) {
|
if (oy == INT_MAX) {
|
||||||
@@ -1742,7 +1742,7 @@ layout_floating_args_parse(struct cmdq_item *item, struct args *args,
|
|||||||
oy = 2;
|
oy = 2;
|
||||||
}
|
}
|
||||||
w->last_new_pane_y = oy;
|
w->last_new_pane_y = oy;
|
||||||
} else
|
} else if (args_has(args, 'Y'))
|
||||||
if (lines != PANE_LINES_NONE)
|
if (lines != PANE_LINES_NONE)
|
||||||
oy += 1;
|
oy += 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user