diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-08-24 10:29:57 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-08-24 10:29:57 +0000 |
commit | f01b7191a328193646885f2bb5f7ce50625385b1 (patch) | |
tree | 3d30535e25a90ea65c16b70b05f65a5f7dd1c209 /window.c | |
parent | 029c34ce6bc76168d06726bc81bda4514d245054 (diff) |
Add pane-base-index option, from Ben Barbour.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -454,7 +454,7 @@ window_pane_at_index(struct window *w, u_int idx) struct window_pane *wp; u_int n; - n = 0; + n = options_get_number(&w->options, "pane-base-index"); TAILQ_FOREACH(wp, &w->panes, entry) { if (n == idx) return (wp); @@ -492,7 +492,7 @@ window_pane_index(struct window *w, struct window_pane *wp) struct window_pane *wq; u_int n; - n = 0; + n = options_get_number(&w->options, "pane-base-index"); TAILQ_FOREACH(wq, &w->panes, entry) { if (wp == wq) break; |