nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 87da3ecbe05695e38b3eb23169ca4a6a2abb1db3
parent ff35a613553af90b19abf833d749031489fce90d
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 29 Oct 2017 20:42:20 +0100

tweaks: remove another bit of conditional compilation

Diffstat:
Msrc/prompt.c | 11++---------
1 file changed, 2 insertions(+), 9 deletions(-)

diff --git 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;