version 1.186, 2017/03/13 17:20:11 |
version 1.187, 2017/03/21 09:49:10 |
|
|
{ |
{ |
struct screen *s = &wp->base; |
struct screen *s = &wp->base; |
char *newsearchstr, *line, *msg; |
char *newsearchstr, *line, *msg; |
u_int i; |
u_int i; |
|
|
msg = NULL; |
msg = NULL; |
xasprintf(&newsearchstr, "*%s*", searchstr); |
xasprintf(&newsearchstr, "*%s*", searchstr); |
|
|
{ |
{ |
struct window_pane *next, *best, **list; |
struct window_pane *next, *best, **list; |
u_int edge, left, right, end, size; |
u_int edge, left, right, end, size; |
int found; |
int status, found; |
|
|
if (wp == NULL || !window_pane_visible(wp)) |
if (wp == NULL || !window_pane_visible(wp)) |
return (NULL); |
return (NULL); |
|
status = options_get_number(wp->window->options, "pane-border-status"); |
|
|
list = NULL; |
list = NULL; |
size = 0; |
size = 0; |
|
|
edge = wp->yoff; |
edge = wp->yoff; |
if (edge == 0) |
if (edge == (status == 1 ? 1 : 0)) |
edge = wp->window->sy + 1; |
edge = wp->window->sy + 1 - (status == 2 ? 1 : 0); |
|
|
left = wp->xoff; |
left = wp->xoff; |
right = wp->xoff + wp->sx; |
right = wp->xoff + wp->sx; |
|
|
{ |
{ |
struct window_pane *next, *best, **list; |
struct window_pane *next, *best, **list; |
u_int edge, left, right, end, size; |
u_int edge, left, right, end, size; |
int found; |
int status, found; |
|
|
if (wp == NULL || !window_pane_visible(wp)) |
if (wp == NULL || !window_pane_visible(wp)) |
return (NULL); |
return (NULL); |
|
status = options_get_number(wp->window->options, "pane-border-status"); |
|
|
list = NULL; |
list = NULL; |
size = 0; |
size = 0; |
|
|
edge = wp->yoff + wp->sy + 1; |
edge = wp->yoff + wp->sy + 1; |
if (edge >= wp->window->sy) |
if (edge >= wp->window->sy - (status == 2 ? 1 : 0)) |
edge = 0; |
edge = (status == 1 ? 1 : 0); |
|
|
left = wp->xoff; |
left = wp->xoff; |
right = wp->xoff + wp->sx; |
right = wp->xoff + wp->sx; |