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

Diff for /src/usr.bin/tmux/window-copy.c between version 1.308 and 1.309

version 1.308, 2020/12/28 09:36:26 version 1.309, 2021/01/06 07:29:49
Line 3009 
Line 3009 
         struct screen                   *s = data->backing, ss;          struct screen                   *s = data->backing, ss;
         struct screen_write_ctx          ctx;          struct screen_write_ctx          ctx;
         struct grid                     *gd = s->grid;          struct grid                     *gd = s->grid;
         int                              found, cis, which = -1, stopped = 0;          int                              found, cis, stopped = 0;
         int                              cflags = REG_EXTENDED;          int                              cflags = REG_EXTENDED;
         u_int                            px, py, i, b, nfound = 0, width;          u_int                            px, py, i, b, nfound = 0, width;
         u_int                            ssize = 1, start, end;          u_int                            ssize = 1, start, end;
Line 3072 
Line 3072 
                                 if (!found)                                  if (!found)
                                         break;                                          break;
                         }                          }
   
                         nfound++;                          nfound++;
                         if (px == data->cx &&  
                             py == gd->hsize + data->cy - data->oy)  
                                 which = nfound;  
   
                         if (window_copy_search_mark_at(data, px, py, &b) == 0) {                          if (window_copy_search_mark_at(data, px, py, &b) == 0) {
                                 if (b + width > gd->sx * gd->sy)                                  if (b + width > gd->sx * gd->sy)
Line 3088 
Line 3084 
                                 else                                  else
                                         data->searchgen++;                                          data->searchgen++;
                         }                          }
   
                         px += width;                          px += width;
                 }                  }
   

Legend:
Removed from v.1.308  
changed lines
  Added in v.1.309