From 3a6d90adadfcd4aa6b513df7f8ae5c4dcc05a6dc Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 26 Jun 2019 18:44:22 +0000 Subject: Fix a typo in window_pane_find_down (w not wp) and a missing PANE_STATUS_TOP. --- layout.c | 4 ++-- window.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layout.c b/layout.c index 6e78b439..e84da936 100644 --- a/layout.c +++ b/layout.c @@ -272,7 +272,7 @@ layout_fix_panes(struct window *w) wp->xoff = lc->xoff; wp->yoff = lc->yoff; - if (shift && status == 1) + if (shift && status == PANE_STATUS_TOP) wp->yoff += 1; 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; TAILQ_FOREACH (lc, &parent->cells, entry) - number++; + number++; if (number <= 1) return (0); status = options_get_number(w->options, "pane-border-status"); diff --git a/window.c b/window.c index 8108600d..65097e1c 100644 --- a/window.c +++ b/window.c @@ -1368,7 +1368,7 @@ window_pane_find_down(struct window_pane *wp) if (edge >= w->sy - 1) edge = 0; } else { - if (edge >= wp->sy) + if (edge >= w->sy) edge = 0; } -- cgit v1.2.3