diff options
author | Thomas Adam <thomas@xteddy.org> | 2012-09-15 12:23:25 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2012-09-15 12:23:25 +0100 |
commit | 68cc635ed54f2a9ff5ee403e4a37ba50561cbb43 (patch) | |
tree | 05652c8d3cc944b066515893fc8c86f6edd0b403 /cmd-choose-list.c | |
parent | 248cd423a1cf4aeb7ae2148598e91b9a797f04c5 (diff) | |
parent | b2a9f4115f99f88a8b69a36a1f9ab12f6de4a986 (diff) | |
download | rtmux-68cc635ed54f2a9ff5ee403e4a37ba50561cbb43.tar.gz rtmux-68cc635ed54f2a9ff5ee403e4a37ba50561cbb43.tar.bz2 rtmux-68cc635ed54f2a9ff5ee403e4a37ba50561cbb43.zip |
Merge branch 'obsd-master'
Sync from OpenBSD.
Diffstat (limited to 'cmd-choose-list.c')
-rw-r--r-- | cmd-choose-list.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd-choose-list.c b/cmd-choose-list.c index 15c644ec..4c32e694 100644 --- a/cmd-choose-list.c +++ b/cmd-choose-list.c @@ -86,6 +86,12 @@ cmd_choose_list_exec(struct cmd *self, struct cmd_ctx *ctx) } free(copy); + if (idx == 0) { + free(template); + window_pane_reset_mode(wl->window->active); + return (CMD_RETURN_ERROR); + } + window_choose_ready(wl->window->active, 0, cmd_choose_list_callback, cmd_choose_list_free); |