[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.230 and 1.231

version 1.230, 2019/08/01 14:31:39 version 1.231, 2019/08/14 09:58:31
Line 1638 
Line 1638 
         const char                      *argument = cs->args->argv[1];          const char                      *argument = cs->args->argv[1];
   
         if (*argument != '\0') {          if (*argument != '\0') {
                 data->searchtype = WINDOW_COPY_SEARCHUP;  
                 free(data->searchstr);                  free(data->searchstr);
                 data->searchstr = xstrdup(argument);                  data->searchstr = xstrdup(argument);
           }
           if (data->searchstr != NULL) {
                   data->searchtype = WINDOW_COPY_SEARCHUP;
                 for (; np != 0; np--)                  for (; np != 0; np--)
                         window_copy_search_up(wme);                          window_copy_search_up(wme);
         }          }
Line 1656 
Line 1658 
         const char                      *argument = cs->args->argv[1];          const char                      *argument = cs->args->argv[1];
   
         if (*argument != '\0') {          if (*argument != '\0') {
                 data->searchtype = WINDOW_COPY_SEARCHDOWN;  
                 free(data->searchstr);                  free(data->searchstr);
                 data->searchstr = xstrdup(argument);                  data->searchstr = xstrdup(argument);
           }
           if (data->searchstr != NULL) {
                   data->searchtype = WINDOW_COPY_SEARCHDOWN;
                 for (; np != 0; np--)                  for (; np != 0; np--)
                         window_copy_search_down(wme);                          window_copy_search_down(wme);
         }          }
Line 2139 
Line 2143 
         return (0);          return (0);
 }  }
   
 /*  /* Search in text. If direction is 0 then search up, otherwise down. */
  * Search in for text searchstr. If direction is 0 then search up, otherwise  
  * down.  
  */  
 static int  static int
 window_copy_search(struct window_mode_entry *wme, int direction)  window_copy_search(struct window_mode_entry *wme, int direction)
 {  {

Legend:
Removed from v.1.230  
changed lines
  Added in v.1.231