Fix a typo in window_pane_find_down (w not wp) and a missing PANE_STATUS_TOP.

pull/1819/head
nicm 2019-06-26 18:44:22 +00:00
parent 87ea14328c
commit 3a6d90adad
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;
}