Skip to content

Commit 3a6d90a

Browse files
author
nicm
committed
Fix a typo in window_pane_find_down (w not wp) and a missing PANE_STATUS_TOP.
1 parent 87ea143 commit 3a6d90a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

layout.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ layout_fix_panes(struct window *w)
272272
wp->xoff = lc->xoff;
273273
wp->yoff = lc->yoff;
274274

275-
if (shift && status == 1)
275+
if (shift && status == PANE_STATUS_TOP)
276276
wp->yoff += 1;
277277

278278
window_pane_resize(wp, lc->sx, lc->sy - shift);
@@ -1021,7 +1021,7 @@ layout_spread_cell(struct window *w, struct layout_cell *parent)
10211021

10221022
number = 0;
10231023
TAILQ_FOREACH (lc, &parent->cells, entry)
1024-
number++;
1024+
number++;
10251025
if (number <= 1)
10261026
return (0);
10271027
status = options_get_number(w->options, "pane-border-status");

window.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ window_pane_find_down(struct window_pane *wp)
13681368
if (edge >= w->sy - 1)
13691369
edge = 0;
13701370
} else {
1371-
if (edge >= wp->sy)
1371+
if (edge >= w->sy)
13721372
edge = 0;
13731373
}
13741374

0 commit comments

Comments
 (0)