[BACK]Return to window.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/window.c between version 1.186 and 1.187

version 1.186, 2017/03/13 17:20:11 version 1.187, 2017/03/21 09:49:10
Line 1257 
Line 1257 
 {  {
         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);
Line 1305 
Line 1305 
 {  {
         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;
Line 1351 
Line 1352 
 {  {
         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;

Legend:
Removed from v.1.186  
changed lines
  Added in v.1.187