tweaks: rename a function and place its call better

master
Benno Schulenberg 2018-07-11 10:48:27 +02:00
parent 0c455155ad
commit aea54276b6
2 changed files with 3 additions and 6 deletions

View File

@ -384,7 +384,7 @@ void reinit_statusbar_x(void)
}
/* Redraw the promptbar and place the cursor at the right spot. */
void update_the_statusbar(void)
void draw_the_promptbar(void)
{
size_t base = strlenpt(prompt) + 2;
size_t the_page, end_page, column;
@ -466,9 +466,9 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs,
if (statusbar_x > strlen(answer))
statusbar_x = strlen(answer);
update_the_statusbar();
while (TRUE) {
draw_the_promptbar();
kbinput = do_statusbar_input(&finished);
#ifndef NANO_TINY
@ -571,8 +571,6 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs,
if (finished)
break;
update_the_statusbar();
#if defined(ENABLE_HISTORIES) && defined(ENABLE_TABCOMP)
last_kbinput = kbinput;
#endif

View File

@ -463,7 +463,6 @@ void do_statusbar_verbatim_input(void);
size_t statusbar_xplustabs(void);
size_t get_statusbar_page_start(size_t start_col, size_t column);
void reinit_statusbar_x(void);
void update_the_statusbar(void);
void add_or_remove_pipe_symbol_from_answer(void);
int do_prompt(bool allow_tabs, bool allow_files,
int menu, const char *curranswer, filestruct **history_list,