mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 17:39:09 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
4a96f599f6
4
layout.c
4
layout.c
@ -414,9 +414,9 @@ layout_destroy_cell(struct window *w, struct layout_cell *lc,
|
|||||||
lcother = TAILQ_NEXT(lc, entry);
|
lcother = TAILQ_NEXT(lc, entry);
|
||||||
else
|
else
|
||||||
lcother = TAILQ_PREV(lc, layout_cells, entry);
|
lcother = TAILQ_PREV(lc, layout_cells, entry);
|
||||||
if (lcparent->type == LAYOUT_LEFTRIGHT)
|
if (lcother != NULL && lcparent->type == LAYOUT_LEFTRIGHT)
|
||||||
layout_resize_adjust(w, lcother, lcparent->type, lc->sx + 1);
|
layout_resize_adjust(w, lcother, lcparent->type, lc->sx + 1);
|
||||||
else
|
else if (lcother != NULL)
|
||||||
layout_resize_adjust(w, lcother, lcparent->type, lc->sy + 1);
|
layout_resize_adjust(w, lcother, lcparent->type, lc->sy + 1);
|
||||||
|
|
||||||
/* Remove this from the parent's list. */
|
/* Remove this from the parent's list. */
|
||||||
|
Loading…
Reference in New Issue
Block a user