From e9cef8bf305e93d0ec8496c8155e0fa1258b8378 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 25 Mar 2013 10:05:58 +0000 Subject: [PATCH] Continue the parent cmdq after sourcing a file. --- cmd-source-file.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd-source-file.c b/cmd-source-file.c index 3d69a544..1bd2bb0a 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -98,10 +98,11 @@ cmd_source_file_done(struct cmd_q *cmdq1) cmdq_free(cmdq1); cfg_references--; - if (cmdq_free(cmdq) || cfg_references != 0) + + if (cmdq_free(cmdq)) return; - cmd_source_file_show(cmdq); - + if (cfg_references == 0) + cmd_source_file_show(cmdq); cmdq_continue(cmdq); }