diff options
author | 2019-06-26 18:44:22 +0000 | |
---|---|---|
committer | 2019-06-26 18:44:22 +0000 | |
commit | 5f9583ae6585af65028f0abc5f88202a94e29417 (patch) | |
tree | e5d52a86c42a2dbf0c8bcd51e0ccbee12f68f692 /usr.bin/tmux/layout.c | |
parent | Pass keys that aren't 0-9 on to normal key processing when display-panes (diff) | |
download | wireguard-openbsd-5f9583ae6585af65028f0abc5f88202a94e29417.tar.xz wireguard-openbsd-5f9583ae6585af65028f0abc5f88202a94e29417.zip |
Fix a typo in window_pane_find_down (w not wp) and a missing PANE_STATUS_TOP.
Diffstat (limited to 'usr.bin/tmux/layout.c')
-rw-r--r-- | usr.bin/tmux/layout.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/layout.c b/usr.bin/tmux/layout.c index 0a23653e979..fc1c8ea4c44 100644 --- a/usr.bin/tmux/layout.c +++ b/usr.bin/tmux/layout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: layout.c,v 1.44 2019/06/26 13:03:47 nicm Exp $ */ +/* $OpenBSD: layout.c,v 1.45 2019/06/26 18:44:22 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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"); |