[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.286 and 1.287

version 1.286, 2020/05/16 16:03:30 version 1.287, 2020/05/16 16:03:57
Line 2445 
Line 2445 
                 len += gd->sx;                  len += gd->sx;
         }          }
   
         if (regexec(reg, buf, 1, &regmatch, eflags) == 0) {          if (regexec(reg, buf, 1, &regmatch, eflags) == 0 &&
               regmatch.rm_so != regmatch.rm_eo) {
                 foundx = first;                  foundx = first;
                 foundy = py;                  foundy = py;
                 window_copy_cstrtocellpos(gd, len, &foundx, &foundy,                  window_copy_cstrtocellpos(gd, len, &foundx, &foundy,
Line 2547 
Line 2548 
         foundy = py;          foundy = py;
         oldx = first;          oldx = first;
         while (regexec(preg, buf + px, 1, &regmatch, eflags) == 0) {          while (regexec(preg, buf + px, 1, &regmatch, eflags) == 0) {
                   if (regmatch.rm_so == regmatch.rm_eo)
                           break;
                 window_copy_cstrtocellpos(gd, len, &foundx, &foundy,                  window_copy_cstrtocellpos(gd, len, &foundx, &foundy,
                     buf + px + regmatch.rm_so);                      buf + px + regmatch.rm_so);
                 if (foundy > py || foundx >= last)                  if (foundy > py || foundx >= last)

Legend:
Removed from v.1.286  
changed lines
  Added in v.1.287