mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-26 07:48:57 +01:00
Handle empty list properly in choose-list, based on fix from Thomas Adam.
This commit is contained in:
parent
b433886840
commit
b2a9f4115f
@ -86,6 +86,12 @@ cmd_choose_list_exec(struct cmd *self, struct cmd_ctx *ctx)
|
|||||||
}
|
}
|
||||||
free(copy);
|
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,
|
window_choose_ready(wl->window->active, 0, cmd_choose_list_callback,
|
||||||
cmd_choose_list_free);
|
cmd_choose_list_free);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user