summaryrefslogtreecommitdiff
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c
index f16e0b0..3b399dc 100644
--- a/src/command.c
+++ b/src/command.c
@@ -59,6 +59,12 @@ down(struct context *ctx, int key)
return;
ctl = interface_get_current_ctl(&ctx->interface, &parent);
+ if (ctl == NULL) {
+ ifc->chooser_child = SELECTED_MAIN_CTL;
+ ctl = interface_get_current_ctl(&ctx->interface, &parent);
+ if (ctl == NULL)
+ return;
+ }
if (parent)
ctl = parent;