mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-26 06:39:43 +03:00
tweaks: rename another function, to better describe what it does
Also, reshuffle two initializations to go sit with the other ones.
This commit is contained in:
parent
6566177743
commit
a9c4682c25
12
src/help.c
12
src/help.c
@ -46,7 +46,7 @@ char *tempfilename = NULL;
|
||||
|
||||
/* Hard-wrap the help text, write it to the existing temporary file, and
|
||||
* read that file into a new buffer. */
|
||||
void display_the_help_text(bool redisplaying)
|
||||
void wrap_the_help_text(bool redisplaying)
|
||||
{
|
||||
int sum = 0;
|
||||
const char *ptr = start_of_body;
|
||||
@ -151,6 +151,10 @@ void do_help(void)
|
||||
margin = 0;
|
||||
#endif
|
||||
tabsize = 8;
|
||||
#ifndef DISABLE_COLOR
|
||||
syntaxstr = "nanohelp";
|
||||
#endif
|
||||
curs_set(0);
|
||||
|
||||
/* Compose the help text from all the pieces. */
|
||||
help_init();
|
||||
@ -173,11 +177,7 @@ void do_help(void)
|
||||
while (*start_of_body == '\n')
|
||||
start_of_body++;
|
||||
|
||||
#ifndef DISABLE_COLOR
|
||||
syntaxstr = "nanohelp";
|
||||
#endif
|
||||
display_the_help_text(FALSE);
|
||||
curs_set(0);
|
||||
wrap_the_help_text(FALSE);
|
||||
edit_refresh();
|
||||
|
||||
while (TRUE) {
|
||||
|
@ -343,7 +343,7 @@ void thanks_for_all_the_fish(void);
|
||||
|
||||
/* All functions in help.c. */
|
||||
#ifdef ENABLE_HELP
|
||||
void display_the_help_text(bool redisplaying);
|
||||
void wrap_the_help_text(bool redisplaying);
|
||||
void do_help(void);
|
||||
void help_init(void);
|
||||
functionptrtype parse_help_input(int *kbinput);
|
||||
|
@ -3143,7 +3143,7 @@ void total_refresh(void)
|
||||
titlebar(title);
|
||||
#ifdef ENABLE_HELP
|
||||
if (inhelp)
|
||||
display_the_help_text(TRUE);
|
||||
wrap_the_help_text(TRUE);
|
||||
else
|
||||
#endif
|
||||
edit_refresh();
|
||||
|
Loading…
Reference in New Issue
Block a user