mirror of
https://github.com/tmux/tmux.git
synced 2026-10-08 10:54:28 +00:00
bugfix
There is a signature and functionality mismatch with the recent merge in `layout_floating_pane` that has been fixed. It now more gracefully handles inputs.
This commit is contained in:
6
layout.c
6
layout.c
@@ -1429,9 +1429,11 @@ struct layout_cell *
|
||||
layout_floating_pane(struct window *w, struct window_pane *wp, u_int sx,
|
||||
u_int sy, int ox, int oy)
|
||||
{
|
||||
struct layout_cell *lc = wp->layout_cell, *lcnew, *lcparent;
|
||||
struct layout_cell *lc, *lcnew, *lcparent;
|
||||
|
||||
if (lc == NULL)
|
||||
if (wp != NULL)
|
||||
lc = wp->layout_cell;
|
||||
else
|
||||
lc = w->layout_root;
|
||||
lcparent = lc->parent;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user