mirror of
https://github.com/tmux/tmux.git
synced 2025-01-23 06:03:43 +00:00
Fix a typo in window_pane_find_down (w not wp) and a missing PANE_STATUS_TOP.
This commit is contained in:
parent
87ea14328c
commit
3a6d90adad
4
layout.c
4
layout.c
@ -272,7 +272,7 @@ layout_fix_panes(struct window *w)
|
|||||||
wp->xoff = lc->xoff;
|
wp->xoff = lc->xoff;
|
||||||
wp->yoff = lc->yoff;
|
wp->yoff = lc->yoff;
|
||||||
|
|
||||||
if (shift && status == 1)
|
if (shift && status == PANE_STATUS_TOP)
|
||||||
wp->yoff += 1;
|
wp->yoff += 1;
|
||||||
|
|
||||||
window_pane_resize(wp, lc->sx, lc->sy - shift);
|
window_pane_resize(wp, lc->sx, lc->sy - shift);
|
||||||
@ -1021,7 +1021,7 @@ layout_spread_cell(struct window *w, struct layout_cell *parent)
|
|||||||
|
|
||||||
number = 0;
|
number = 0;
|
||||||
TAILQ_FOREACH (lc, &parent->cells, entry)
|
TAILQ_FOREACH (lc, &parent->cells, entry)
|
||||||
number++;
|
number++;
|
||||||
if (number <= 1)
|
if (number <= 1)
|
||||||
return (0);
|
return (0);
|
||||||
status = options_get_number(w->options, "pane-border-status");
|
status = options_get_number(w->options, "pane-border-status");
|
||||||
|
Loading…
Reference in New Issue
Block a user