From 2ebed7d55f4c8772427a3b6d78c82d129959b870 Mon Sep 17 00:00:00 2001 From: WATANABE Yuki Date: Wed, 17 Apr 2024 00:42:05 +0900 Subject: [PATCH] WIP: Refactor --- input.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/input.c b/input.c index 01470b0f..428ba5ba 100644 --- a/input.c +++ b/input.c @@ -238,14 +238,13 @@ inputresult_T optimized_read_input( inputresult_T input_interactive(struct xwcsbuf_T *buf, void *inputinfo) { struct input_interactive_info_T *info = inputinfo; - struct promptset_T prompt; - if (info->prompttype == 1) { if (!posixly_correct) exec_variable_as_auxiliary_(VAR_PROMPT_COMMAND); check_mail(); } - prompt = get_prompt(info->prompttype); + + struct promptset_T prompt = get_prompt(info->prompttype); if (do_job_control) print_job_status_all(); /* Note: no commands must be executed between `print_job_status_all' here