version 1.99, 2015/04/19 21:34:21 |
version 1.100, 2015/04/21 22:42:27 |
|
|
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); |
} |
} |