Skip to content

Commit

Permalink
cmd_find_index should return -2 on error.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Jul 24, 2009
1 parent 029599c commit c6dac5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ cmd_find_index(struct cmd_ctx *ctx, const char *arg, struct session **sp)
*/
if ((s = cmd_current_session(ctx)) == NULL) {
ctx->error(ctx, "can't establish current session");
return (-1);
return (-2);
}

/* A NULL argument means the current session and "no window" (-1). */
Expand Down

0 comments on commit c6dac5c

Please sign in to comment.