version 1.2, 2009/07/13 23:11:35 |
version 1.3, 2009/07/15 17:39:00 |
|
|
idx = strtonum(s, 0, UINT_MAX, &errstr); |
idx = strtonum(s, 0, UINT_MAX, &errstr); |
if (errstr != NULL) { |
if (errstr != NULL) { |
xsnprintf(msg, sizeof msg, "Index %s: %s", errstr, s); |
xsnprintf(msg, sizeof msg, "Index %s: %s", errstr, s); |
status_message_set(c, msg); |
status_message_set(c, "%s", msg); |
return (0); |
return (0); |
} |
} |
|
|
if (winlink_find_by_index(&c->session->windows, idx) == NULL) { |
if (winlink_find_by_index(&c->session->windows, idx) == NULL) { |
xsnprintf(msg, sizeof msg, |
xsnprintf(msg, sizeof msg, |
"Window not found: %s:%d", c->session->name, idx); |
"Window not found: %s:%d", c->session->name, idx); |
status_message_set(c, msg); |
status_message_set(c, "%s", msg); |
return (0); |
return (0); |
} |
} |
|
|