[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.231 and 1.232

version 1.231, 2019/08/14 09:58:31 version 1.232, 2019/08/14 09:59:43
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 1658 
Line 1656 
         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 2143 
Line 2139 
         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.231  
changed lines
  Added in v.1.232