mirror of
https://github.com/tmux/tmux.git
synced 2025-01-15 05:09:04 +00:00
cmd_find_index should return -2 on error.
This commit is contained in:
parent
029599c02c
commit
c6dac5c3c9
2
cmd.c
2
cmd.c
@ -676,7 +676,7 @@ cmd_find_index(struct cmd_ctx *ctx, const char *arg, struct session **sp)
|
|||||||
*/
|
*/
|
||||||
if ((s = cmd_current_session(ctx)) == NULL) {
|
if ((s = cmd_current_session(ctx)) == NULL) {
|
||||||
ctx->error(ctx, "can't establish current session");
|
ctx->error(ctx, "can't establish current session");
|
||||||
return (-1);
|
return (-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* A NULL argument means the current session and "no window" (-1). */
|
/* A NULL argument means the current session and "no window" (-1). */
|
||||||
|
Loading…
Reference in New Issue
Block a user