From 87da3ecbe05695e38b3eb23169ca4a6a2abb1db3 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 29 Oct 2017 20:42:20 +0100 Subject: [PATCH] tweaks: remove another bit of conditional compilation --- src/prompt.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/prompt.c b/src/prompt.c index 6e6b47b0..58bc3f5c 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -439,10 +439,7 @@ void update_the_statusbar(void) /* Get a string of input at the statusbar prompt. */ functionptrtype acquire_an_answer(int *actual, bool allow_tabs, - bool allow_files, bool *listed, -#ifdef ENABLE_HISTORIES - filestruct **history_list, -#endif + bool allow_files, bool *listed, filestruct **history_list, void (*refresh_func)(void)) { int kbinput = ERR; @@ -633,11 +630,7 @@ int do_prompt(bool allow_tabs, bool allow_files, prompt[actual_x(prompt, (COLS < 5) ? 0 : COLS - 5)] = '\0'; func = acquire_an_answer(&retval, allow_tabs, allow_files, &listed, -#ifdef ENABLE_HISTORIES - history_list, -#endif - refresh_func); - + history_list, refresh_func); free(prompt); prompt = saved_prompt;