tweaks: rename a function, to get out of the way for another rename
parent
e16026eacd
commit
d3a8d81afb
12
src/help.c
12
src/help.c
|
@ -88,8 +88,8 @@ void wrap_help_text_into_buffer(void)
|
||||||
openfile->edittop = openfile->current;
|
openfile->edittop = openfile->current;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Our main help-viewer function. */
|
/* Assemble a help text, display it, and allow scrolling through it. */
|
||||||
void do_help(void)
|
void show_help(void)
|
||||||
{
|
{
|
||||||
int kbinput = ERR;
|
int kbinput = ERR;
|
||||||
functionptrtype func;
|
functionptrtype func;
|
||||||
|
@ -140,8 +140,9 @@ void do_help(void)
|
||||||
#endif
|
#endif
|
||||||
curs_set(0);
|
curs_set(0);
|
||||||
|
|
||||||
/* Compose the help text from all the pieces. */
|
/* Compose the help text from all the relevant pieces. */
|
||||||
help_init();
|
help_init();
|
||||||
|
|
||||||
inhelp = TRUE;
|
inhelp = TRUE;
|
||||||
location = 0;
|
location = 0;
|
||||||
didfind = 0;
|
didfind = 0;
|
||||||
|
@ -600,14 +601,13 @@ size_t help_line_len(const char *ptr)
|
||||||
else
|
else
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* ENABLE_HELP */
|
#endif /* ENABLE_HELP */
|
||||||
|
|
||||||
/* Start the help viewer. */
|
/* Start the help viewer, or indicate that there is no help. */
|
||||||
void do_help_void(void)
|
void do_help_void(void)
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_HELP
|
#ifdef ENABLE_HELP
|
||||||
do_help();
|
show_help();
|
||||||
#else
|
#else
|
||||||
if (currmenu == MMAIN)
|
if (currmenu == MMAIN)
|
||||||
say_there_is_no_help();
|
say_there_is_no_help();
|
||||||
|
|
Loading…
Reference in New Issue