diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-03-21 12:01:14 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-03-21 12:01:14 +0000 |
commit | 57b4d3d59389fad079c027a0bdb80d7dd91adaa8 (patch) | |
tree | eb33e268582ea2011609a579fb8c466d5eb84cd7 /window.c | |
parent | 31ae09efa042d9cbe79df36c83890c806c9bd626 (diff) | |
parent | cdaa758340d31e57144ecb7a6e5b1dec138cc693 (diff) | |
download | rtmux-57b4d3d59389fad079c027a0bdb80d7dd91adaa8.tar.gz rtmux-57b4d3d59389fad079c027a0bdb80d7dd91adaa8.tar.bz2 rtmux-57b4d3d59389fad079c027a0bdb80d7dd91adaa8.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -1272,7 +1272,7 @@ window_pane_search(struct window_pane *wp, const char *searchstr, { struct screen *s = &wp->base; char *newsearchstr, *line, *msg; - u_int i; + u_int i; msg = NULL; xasprintf(&newsearchstr, "*%s*", searchstr); @@ -1320,17 +1320,18 @@ window_pane_find_up(struct window_pane *wp) { struct window_pane *next, *best, **list; u_int edge, left, right, end, size; - int found; + int status, found; if (wp == NULL || !window_pane_visible(wp)) return (NULL); + status = options_get_number(wp->window->options, "pane-border-status"); list = NULL; size = 0; edge = wp->yoff; - if (edge == 0) - edge = wp->window->sy + 1; + if (edge == (status == 1 ? 1 : 0)) + edge = wp->window->sy + 1 - (status == 2 ? 1 : 0); left = wp->xoff; right = wp->xoff + wp->sx; @@ -1366,17 +1367,18 @@ window_pane_find_down(struct window_pane *wp) { struct window_pane *next, *best, **list; u_int edge, left, right, end, size; - int found; + int status, found; if (wp == NULL || !window_pane_visible(wp)) return (NULL); + status = options_get_number(wp->window->options, "pane-border-status"); list = NULL; size = 0; edge = wp->yoff + wp->sy + 1; - if (edge >= wp->window->sy) - edge = 0; + if (edge >= wp->window->sy - (status == 2 ? 1 : 0)) + edge = (status == 1 ? 1 : 0); left = wp->xoff; right = wp->xoff + wp->sx; |