tweaks: rename a function and place its call better
parent
0c455155ad
commit
aea54276b6
|
@ -384,7 +384,7 @@ void reinit_statusbar_x(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Redraw the promptbar and place the cursor at the right spot. */
|
/* 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 base = strlenpt(prompt) + 2;
|
||||||
size_t the_page, end_page, column;
|
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))
|
if (statusbar_x > strlen(answer))
|
||||||
statusbar_x = strlen(answer);
|
statusbar_x = strlen(answer);
|
||||||
|
|
||||||
update_the_statusbar();
|
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
|
draw_the_promptbar();
|
||||||
|
|
||||||
kbinput = do_statusbar_input(&finished);
|
kbinput = do_statusbar_input(&finished);
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
|
@ -571,8 +571,6 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs,
|
||||||
if (finished)
|
if (finished)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
update_the_statusbar();
|
|
||||||
|
|
||||||
#if defined(ENABLE_HISTORIES) && defined(ENABLE_TABCOMP)
|
#if defined(ENABLE_HISTORIES) && defined(ENABLE_TABCOMP)
|
||||||
last_kbinput = kbinput;
|
last_kbinput = kbinput;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -463,7 +463,6 @@ void do_statusbar_verbatim_input(void);
|
||||||
size_t statusbar_xplustabs(void);
|
size_t statusbar_xplustabs(void);
|
||||||
size_t get_statusbar_page_start(size_t start_col, size_t column);
|
size_t get_statusbar_page_start(size_t start_col, size_t column);
|
||||||
void reinit_statusbar_x(void);
|
void reinit_statusbar_x(void);
|
||||||
void update_the_statusbar(void);
|
|
||||||
void add_or_remove_pipe_symbol_from_answer(void);
|
void add_or_remove_pipe_symbol_from_answer(void);
|
||||||
int do_prompt(bool allow_tabs, bool allow_files,
|
int do_prompt(bool allow_tabs, bool allow_files,
|
||||||
int menu, const char *curranswer, filestruct **history_list,
|
int menu, const char *curranswer, filestruct **history_list,
|
||||||
|
|
Loading…
Reference in New Issue