tweaks: remove another bit of conditional compilation
Этот коммит содержится в:
родитель
ff35a61355
Коммит
87da3ecbe0
11
src/prompt.c
11
src/prompt.c
@ -439,10 +439,7 @@ void update_the_statusbar(void)
|
|||||||
|
|
||||||
/* Get a string of input at the statusbar prompt. */
|
/* Get a string of input at the statusbar prompt. */
|
||||||
functionptrtype acquire_an_answer(int *actual, bool allow_tabs,
|
functionptrtype acquire_an_answer(int *actual, bool allow_tabs,
|
||||||
bool allow_files, bool *listed,
|
bool allow_files, bool *listed, filestruct **history_list,
|
||||||
#ifdef ENABLE_HISTORIES
|
|
||||||
filestruct **history_list,
|
|
||||||
#endif
|
|
||||||
void (*refresh_func)(void))
|
void (*refresh_func)(void))
|
||||||
{
|
{
|
||||||
int kbinput = ERR;
|
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';
|
prompt[actual_x(prompt, (COLS < 5) ? 0 : COLS - 5)] = '\0';
|
||||||
|
|
||||||
func = acquire_an_answer(&retval, allow_tabs, allow_files, &listed,
|
func = acquire_an_answer(&retval, allow_tabs, allow_files, &listed,
|
||||||
#ifdef ENABLE_HISTORIES
|
history_list, refresh_func);
|
||||||
history_list,
|
|
||||||
#endif
|
|
||||||
refresh_func);
|
|
||||||
|
|
||||||
free(prompt);
|
free(prompt);
|
||||||
prompt = saved_prompt;
|
prompt = saved_prompt;
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user