[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.203 and 1.204

version 1.203, 2018/11/08 18:49:19 version 1.204, 2018/11/28 11:20:13
Line 1817 
Line 1817 
         struct window_copy_mode_data    *data = wp->modedata;          struct window_copy_mode_data    *data = wp->modedata;
         struct grid_cell                 gc;          struct grid_cell                 gc;
         const struct utf8_data          *ud;          const struct utf8_data          *ud;
           struct utf8_data                *copy;
           struct utf8_data                *loop;
           int                              found = 0;
   
         grid_get_cell(data->backing->grid, px, py, &gc);          grid_get_cell(data->backing->grid, px, py, &gc);
           if (gc.flags & GRID_FLAG_PADDING)
         ud = &gc.data;  
         if (ud->size != 1 || (gc.flags & GRID_FLAG_PADDING))  
                 return (0);                  return (0);
         if (*ud->data == 0x00 || *ud->data == 0x7f)          ud = &gc.data;
                 return (0);  
         return (strchr(set, *ud->data) != NULL);          copy = utf8_fromcstr(set);
           for (loop = copy; loop->size != 0; loop++) {
                   if (loop->size != ud->size)
                           continue;
                   if (memcmp(loop->data, ud->data, loop->size) == 0) {
                           found = 1;
                           break;
                   }
           }
           free(copy);
   
           return (found);
 }  }
   
 static u_int  static u_int

Legend:
Removed from v.1.203  
changed lines
  Added in v.1.204