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

Diff for /src/usr.bin/tmux/window.c between version 1.122 and 1.123

version 1.122, 2015/04/22 15:30:11 version 1.123, 2015/04/25 18:09:28
Line 254 
Line 254 
 }  }
   
 struct window *  struct window *
   window_find_by_id_str(const char* s)
   {
           const char      *errstr;
           u_int            id;
   
           if (*s != '@')
                   return (NULL);
   
           id = strtonum(s + 1, 0, UINT_MAX, &errstr);
           if (errstr != NULL)
                   return (NULL);
           return (window_find_by_id(id));
   }
   
   struct window *
 window_find_by_id(u_int id)  window_find_by_id(u_int id)
 {  {
         struct window   w;          struct window   w;
Line 653 
Line 668 
         return (xstrdup(flags));          return (xstrdup(flags));
 }  }
   
 /* Find pane in global tree by id. */  struct window_pane *
   window_pane_find_by_id_str(const char *s)
   {
           const char      *errstr;
           u_int            id;
   
           if (*s != '%')
                   return (NULL);
   
           id = strtonum(s + 1, 0, UINT_MAX, &errstr);
           if (errstr != NULL)
                   return (NULL);
           return (window_pane_find_by_id(id));
   }
   
 struct window_pane *  struct window_pane *
 window_pane_find_by_id(u_int id)  window_pane_find_by_id(u_int id)
 {  {

Legend:
Removed from v.1.122  
changed lines
  Added in v.1.123