diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-18 17:20:52 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-18 17:20:52 +0000 |
commit | 3efd1f5014f889d276298e0b7411169ff50114bc (patch) | |
tree | 5dd65f55e9eeac4f7cfdfe27f2c10a40d9403c6a /cmd-choose-session.c | |
parent | 6384c60c108e4d2a9f4489407f9426539a1e6ce3 (diff) |
find-window command.
Diffstat (limited to 'cmd-choose-session.c')
-rw-r--r-- | cmd-choose-session.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd-choose-session.c b/cmd-choose-session.c index 14745c16..9763918a 100644 --- a/cmd-choose-session.c +++ b/cmd-choose-session.c @@ -1,4 +1,4 @@ -/* $Id: cmd-choose-session.c,v 1.3 2009-01-18 12:13:21 nicm Exp $ */ +/* $Id: cmd-choose-session.c,v 1.4 2009-01-18 17:20:52 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -61,7 +61,7 @@ cmd_choose_session_exec(struct cmd *self, struct cmd_ctx *ctx) return; if (window_pane_set_mode(wl->window->active, &window_choose_mode) != 0) - return; + goto out; cur = idx = 0; for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { @@ -84,6 +84,7 @@ cmd_choose_session_exec(struct cmd *self, struct cmd_ctx *ctx) window_choose_ready( wl->window->active, cur, cmd_choose_session_callback, cdata); +out: if (ctx->cmdclient != NULL) server_write_client(ctx->cmdclient, MSG_EXIT, NULL, 0); } |