mirror of
https://github.com/tmux/tmux.git
synced 2026-06-21 09:45:41 +00:00
Bug fix for parsing floating args.
This commit is contained in:
9
layout.c
9
layout.c
@@ -1674,11 +1674,12 @@ layout_get_floating_cell(struct cmdq_item *item, struct args *args,
|
|||||||
struct window *w, struct window_pane *wp, char **cause)
|
struct window *w, struct window_pane *wp, char **cause)
|
||||||
{
|
{
|
||||||
struct layout_cell *lcnew;
|
struct layout_cell *lcnew;
|
||||||
u_int sx, sy;
|
u_int sx = UINT_MAX, sy = UINT_MAX;
|
||||||
int ox, oy;
|
int ox = INT_MAX, oy = INT_MAX;
|
||||||
|
|
||||||
layout_cell_floating_args_parse(item, args, w, &sx, &sy, &ox, &oy, cause);
|
layout_cell_floating_args_parse(item, args, w, &sx, &sy, &ox, &oy,
|
||||||
if (cause != NULL) {
|
cause);
|
||||||
|
if (*cause != NULL) {
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user