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

Diff for /src/usr.bin/tmux/cmd.c between version 1.99 and 1.100

version 1.99, 2015/04/19 21:34:21 version 1.100, 2015/04/21 22:42:27
Line 781 
Line 781 
         const char      *errstr;          const char      *errstr;
         u_int            idx;          u_int            idx;
   
           idx = strtonum(name, 0, INT_MAX, &errstr);
           if (errstr == NULL)
                   return (idx);
   
         if ((wl = cmd_lookup_window(s, name, ambiguous)) != NULL)          if ((wl = cmd_lookup_window(s, name, ambiguous)) != NULL)
                 return (wl->idx);                  return (wl->idx);
         if (*ambiguous)          if (*ambiguous)
                 return (-1);                  return (-1);
   
         idx = strtonum(name, 0, INT_MAX, &errstr);  
         if (errstr == NULL)  
                 return (idx);  
   
         return (-1);          return (-1);
 }  }

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100