aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/modules/menu.c')
-rw-r--r--com32/modules/menu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/com32/modules/menu.c b/com32/modules/menu.c
index d9db5633..f7d44c52 100644
--- a/com32/modules/menu.c
+++ b/com32/modules/menu.c
@@ -838,8 +838,11 @@ int main(int argc, char *argv[])
cmdline = run_menu();
printf("\033[?25h\033[%d;1H\033[0m", END_ROW);
- if ( cmdline )
+ if ( cmdline ) {
execute(cmdline);
+ if ( onerror )
+ execute(onerror);
+ }
else
return 0; /* Exit */
}